32 lines
442 B
ReStructuredText
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
|