Reply to comment
Installing and usage instructions
Submitted by vladimir on Tue, 02/03/2009 - 17:33Installing
Cafs are being distributed as a .tar.gz distutils tarball. Install as simple as any other Python package:
- Download cafs
- Unpack:
tar xzf cafs-0.0.6.tar.gz && cd cafs-0.0.6 - 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/
