2007-03-11, 06:06 PM
install rsync (ie. on debian use apt-get install rsync) on the host machine and client machine
HOST MACHINE
cp /usr/share/doc/rsync/examples/rsyncd.conf /etc/rsyncd.conf
edit /etc/rsyncd.conf to your requirements
the only bit i changed was the path of the folder i wanted to rsync.
edit /etc/default/rsync and change
RSYNC_ENABLE=false to RSYNC_ENABLE=true
/etc/init.d/rsync start
do a netstat -l and you should now see that rsync is listening on port 873
CLIENT MACHINE
to activate rsync
rsync -av host::ftp /client/rsync'd/folder
ftp is the name of the default module in /etc/rsyncd.conf you can change this to anything you want in the config or add new modules for different folders to rsync. you might get error messages if you try and rsync a folder what shares different file systems.