Reply to comment

 

Installing and usage instructions

Installing

Cafs are being distributed as a .tar.gz distutils tarball. Install as simple as any other Python package:

  1. Download cafs
  2. Unpack: tar xzf cafs-0.0.6.tar.gz && cd cafs-0.0.6
  3. Setup: sudo python setup.py install

You could also use lates svn version: svn co svn://svn.greenmice.info/cafs/ or Gentoo ebuild: rsync://rsync.greenmice.info/gmos-portage-1.0/sys-fs/cafs/

Usage

 mount_cafs.py config_file /path/to/mountpoint [-o options]

Or in fstab:

mount_cafs.py#/etc/cafs/config.ini         /mount/point/              fuse             uid=123,umask=022,allow_other

Configfile example

version = 1.0 # config file syntax version (for backward compatibility)
engine=localfiles # engine of upstream fs
 
[cache]
# cache settings
dir = /var/cache/cafs/ # cache dir
maxage = 172800 # maximim entry lifetime
dump_frequency = 120 # frequency of saving cache to disk
 
################################################################
# engines settings
 
[localfiles]
source=/home/data
 
[sftp]
host=localhost
port=22
user=username
password=mypass
dir=/usr/share/doc/

Reply

The content of this field is kept private and will not be shown publicly.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.

User login

Syndicate

Syndicate content