User Tools

Site Tools


info:mirroring

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
info:mirroring [2010/01/05 11:50] – created moritzinfo:mirroring [2010/01/06 10:20] (current) moritz
Line 1: Line 1:
 ====== Mirroring ====== ====== Mirroring ======
  
 +Note: Replace all //USER// with your primary user name.
 ===== Using Unison and FTP hosts ===== ===== Using Unison and FTP hosts =====
 +These instructions have been tested on Debian and Ubuntu.
 +
   - Install unison (and unison-gtk) and curlftpfs: <code>aptitude install curlftpfs unison unison-gtk</code>   - Install unison (and unison-gtk) and curlftpfs: <code>aptitude install curlftpfs unison unison-gtk</code>
   - Setup a local mount path: <code>mkdir /mnt/shared</code>   - Setup a local mount path: <code>mkdir /mnt/shared</code>
-  - Modify ''/etc/fstab'' to contain the fuse entry: <code>curlftpfs#user:password@host /mnt/shared fuse rw,uid=1000,user,noauto,allow_other 0 0</code> Replace uid=1000 with the number of your primary user. Get this number from ''/etc/passwd'': grep //USER// /etc/passwdThe first number is the user ID.+  - To be able to mount the shared directory as a normal user, add your user to the ''fuse'' group: ''adduser'' //USER// ''fuse'' 
 +  - Next, the directory must be user/group writable: ''chown'' //USER//'':fuse /mnt/shared'' 
 +  - Modify ''/etc/fstab'' to contain the fuse entry: <code>curlftpfs#user:password@host /mnt/shared fuse rw,uid=1000,user,noauto,allow_other 0 0</code> Replace uid=1000 with the number of your primary user. Issue the command ''id -u'' to get the ''uid'' value. 
 +  - Sometimes it is also necessary to allow fuse to be mounted by other users, edit ''/etc/fuse.conf'' to have the option ''user_allow_other''. Add the entry if missing or uncomment it by removing the # character.
   - Create a synchronization directory in your home: ''mkdir ~/syn''   - 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-gtk'' and specify ''~/syn'' as local and ''/mnt/shared'' as remote site.   - Start unison: ''unison-gtk'' and specify ''~/syn'' as local and ''/mnt/shared'' as remote site.
  
 +===== Mirroring on Windows =====
 +A good tool is provided by Microsoft, it's called [[http://www.google.com/search?q=SyncToy|SyncToy]].
  
info/mirroring.1262688603.txt.gz · Last modified: 2010/01/05 11:50 by moritz

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki