Snippets

Simulate sync with deletion

rsync \
--archive \
--chown user:group \
--no-whole-file \
--progress \
--verbose \
"/local/directory/" \
"user@host:/remote/directory/" \
--delete --delete-before --delete-after \
--dry-run

Service

  • /etc/rsyncd.conf

[name]
list = yes
path = /path
read only = true
uid = nobody
gid = nogroup