rsync daemon-mode
xinted or pure-daemon (initd, systemd).
http://www.jveweb.net/en/archives/2011/01/running-rsync-as-a-daemon.html
Server-side permisstions
Default, server-side user set nobody
. If you inherit file owner/group, set gid/uid
@ /etc/rsyncd.conf
.
configure
[{hoge}] is module. All params set in specific module.
rsyncd.conf
log file = /var/log/rsync.log
pid file = /var/run/rsyncd.pid
lock file = /var/run/rsync.lock
[tmp]
path = /tmp/sync
read only = false
timeout = 300
uid = root
gid = root
client-side ops
Push
sudo rsync -a [local-file/dir] rsync://[server-ip/host]/tmp
/tmp
is not absolute path. This is module name defined at severside-configure.