2017-12-02 23:02:37 +01:00
|
|
|
Snippets
|
2018-11-21 15:45:20 +01:00
|
|
|
========
|
2017-12-02 23:02:37 +01:00
|
|
|
|
|
|
|
Simulate sync with deletion
|
2018-11-21 15:45:20 +01:00
|
|
|
---------------------------
|
2017-12-02 23:02:37 +01:00
|
|
|
|
2024-04-12 14:22:24 +02:00
|
|
|
.. code-block:: shell
|
2017-12-02 23:02:37 +01:00
|
|
|
|
2019-07-30 19:48:02 +02:00
|
|
|
rsync \
|
|
|
|
--archive \
|
|
|
|
--chown user:group \
|
|
|
|
--no-whole-file \
|
|
|
|
--progress \
|
|
|
|
--verbose \
|
|
|
|
"/local/directory/" \
|
|
|
|
"user@host:/remote/directory/" \
|
|
|
|
--delete --delete-before --delete-after \
|
|
|
|
--dry-run
|
2024-04-12 14:22:24 +02:00
|
|
|
|
|
|
|
Service
|
|
|
|
-------
|
|
|
|
|
|
|
|
* /etc/rsyncd.conf
|
|
|
|
|
|
|
|
.. code-block:: shell
|
|
|
|
|
|
|
|
[name]
|
|
|
|
list = yes
|
|
|
|
path = /path
|
|
|
|
read only = true
|
|
|
|
uid = nobody
|
|
|
|
gid = nogroup
|