Linux-Noob Forums

Full Version: how i got rsync working as a daemon on port 873
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

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.