LoginSignup
0
0

More than 5 years have passed since last update.

rsync / lsync note

Last updated at Posted at 2017-04-21

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.

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0