Update cheatsheets

This commit is contained in:
ivuorinen
2026-01-09 00:22:15 +00:00
parent 4c849cfc8a
commit ffe393201e
18 changed files with 43 additions and 40 deletions

View File

@@ -9,7 +9,7 @@ source: https://github.com/tldr-pages/tldr.git
> 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}}`
@@ -21,9 +21,9 @@ source: https://github.com/tldr-pages/tldr.git
`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: