rsync: update examples (#20584)

* rsync: update examples

* Update pages/common/rsync.md

Co-authored-by: Managor <42655600+Managor@users.noreply.github.com>

---------

Co-authored-by: Managor <42655600+Managor@users.noreply.github.com>
This commit is contained in:
Fazle Arefin
2026-01-08 04:43:42 +01:00
committed by GitHub
co-authored by Managor
parent 09110e3c0f
commit 6e1fd0497c
+3 -3
View File
@@ -4,7 +4,7 @@
> To specify a remote path, use `user@host:path/to/file_or_directory`.
> More information: <https://download.samba.org/pub/rsync/rsync.1>.
- Transfer a file:
- Transfer a file (use `--dry-run` to simulate the transfer):
`rsync {{path/to/source}} {{path/to/destination}}`
@@ -16,9 +16,9 @@
`rsync {{[-zvhP|--compress --verbose --human-readable --partial --progress]}} {{path/to/source}} {{path/to/destination}}`
- Recursively copy directories:
- Recursively copy directories and ensure each file is fully committed to disk rather than remaining in RAM:
`rsync {{[-r|--recursive]}} {{path/to/source}} {{path/to/destination}}`
`rsync {{[-r|--recursive]}} --fsync {{path/to/source}} {{path/to/destination}}`
- Transfer directory contents, but not the directory itself: