UsingRsync

Man page is at: http://samba.anu.edu.au/ftp/rsync/rsync.html

On both machines

On the target machine

On the source machine

Example: destination machine is named tomcat2, and you want to move over the //usr/local/ directory: rsync -v --archive \ /usr/local/ rsync://tomcat2/ROOT/usr/local/

Example: to sync the whole machine except for /etc (no point copying /proc either) rsync -v --archive \ --exclude '^/etc/' --exclude '^/proc/' \ / rsync://tomcat2/ROOT/

The trailing slashes on the directory names are important. You may also want the option *--one-file-system* to copy one filesystem at a time.

Sample rsyncd.conf

 [ROOT]
 uid = root
 path = /
 hosts allow = 10.1.211.4
 read only = false

Category: HowtoCategory SolarisCategory