help/rtfd/public/rsync/snippets.rst
2024-04-12 14:22:24 +02:00

32 lines
442 B
ReStructuredText

Snippets
========
Simulate sync with deletion
---------------------------
.. code-block:: shell
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
.. code-block:: shell
[name]
list = yes
path = /path
read only = true
uid = nobody
gid = nogroup