diff options
| author | Marcin Chrzanowski <m@m-chrzan.xyz> | 2026-01-31 21:33:21 +0100 |
|---|---|---|
| committer | Marcin Chrzanowski <m@m-chrzan.xyz> | 2026-01-31 21:33:21 +0100 |
| commit | e1262c7eb2aa3ab968876eef979120a99856ea5b (patch) | |
| tree | 8fe9fefc162f76b29035e22104e43b07f677c510 /rsync.md | |
| parent | 3551480eb3dda15f545f647ea91dbb9017fb5c3c (diff) | |
Add rsync page
Diffstat (limited to 'rsync.md')
| -rw-r--r-- | rsync.md | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/rsync.md b/rsync.md new file mode 100644 index 0000000..9e2c2a3 --- /dev/null +++ b/rsync.md @@ -0,0 +1,23 @@ +# rsync + + rsync from/dir to/location + +Copies files, creating `to/location/dir` + + rsync from/dir/ to/location + +Copies the contents of `from/dir` to `to/location/` + +## Options + +Basic ones: + +- `-r/--recursive`: recurses directories +- `-v/--verbose`: increases verbosity +- `--delete`: deletes files from destination that weren't in the source +- `-z/--compress`: compress files during transfer + +### -a / --archive + +Turns on `-rlptgoD`. So recursive (`-r`), and preserves a bunch of stuff like +soft links, permissions, owners, modification times, special files. |