rtfd/in/public/storage/rsync/snippets.rst

19 lines
294 B
ReStructuredText
Raw Normal View History

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
2018-11-21 15:45:20 +01:00
.. code:: 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