info:mirroring
Table of Contents
Mirroring
Note: Replace all USER with your primary user name.
Using Unison and FTP hosts
These instructions have been tested on Debian and Ubuntu.
- Install unison (and unison-gtk) and curlftpfs:
aptitude install curlftpfs unison unison-gtk
- Setup a local mount path:
mkdir /mnt/shared
- To be able to mount the shared directory as a normal user, add your user to the
fusegroup:adduserUSERfuse - Next, the directory must be user/group writable:
chownUSER:fuse /mnt/shared - Modify
/etc/fstabto contain the fuse entry:curlftpfs#user:password@host /mnt/shared fuse rw,uid=1000,user,noauto,allow_other 0 0
Replace uid=1000 with the number of your primary user. Issue the command
id -uto get theuidvalue. - Sometimes it is also necessary to allow fuse to be mounted by other users, edit
/etc/fuse.confto have the optionuser_allow_other. Add the entry if missing or uncomment it by removing the # character. - Create a synchronization directory in your home:
mkdir ~/syn - At this point it is necessary to log in and out again. This will re-read the group information. Or create a fresh login using
su -USER and entering your password. - Mount the directory (it is not mounted automatically):
mount /mnt/shared - Start unison:
unison-gtkand specify~/synas local and/mnt/sharedas remote site.
Mirroring on Windows
A good tool is provided by Microsoft, it's called SyncToy.
info/mirroring.txt · Last modified: by moritz
