rsync daemon mode
Last update
2018-06-13
2018-06-13
« — »
On the server side create a rsyncd.conf
config file:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | # see "man rsyncd.conf" and /usr/share/doc/rsync/examples/rsyncd.conf log file = /path/to/rsyncd.log pid file = /path/to/rsyncd.pid lock file = /path/to/rsyncd.lock address = 192.168.1.123 reverse lookup = no [folder_name] comment = type a folder description path = /path/to/shared_folder use chroot = yes read only = no list = yes uid = a_username gid = a_usergroup strict modes = no ignore errors = no ignore nonreadable = no transfer logging = no timeout = 5 hosts allow = 192.168.1.0/255.255.255.0 refuse options = checksum dont compress = *.gz *.tgz *.zip *.rar *.7z *.z *.rpm *.deb *.iso *.bz2 *.tbz |
Then use these commands:
1 2 3 4 5 6 | # server side: run daemon (ipv4 only) rsync --daemon -4 --config=/path/to/rsyncd.conf # client side rsync -rdt rsync://ip_addr:port/ # list shared folders on server rsync -avi rsync://ip_addr:port/folder_name/ ./ # sync folder from server |
Source: atlantic.net