rtfd/docs/public/rsync/snippets.rst

19 lines
294 B
ReStructuredText
Raw Normal View History

2017-12-02 22:02:37 +00:00
Snippets
2018-11-21 14:45:20 +00:00
========
2017-12-02 22:02:37 +00:00
Simulate sync with deletion
2018-11-21 14:45:20 +00:00
---------------------------
2017-12-02 22:02:37 +00:00
2018-11-21 14:45:20 +00:00
.. code:: shell
2017-12-02 22:02:37 +00:00
2019-07-30 17:48:02 +00:00
rsync \
--archive \
--chown user:group \
--no-whole-file \
--progress \
--verbose \
"/local/directory/" \
"user@host:/remote/directory/" \
--delete --delete-before --delete-after \
--dry-run