From e1262c7eb2aa3ab968876eef979120a99856ea5b Mon Sep 17 00:00:00 2001 From: Marcin Chrzanowski Date: Sat, 31 Jan 2026 21:33:21 +0100 Subject: Add rsync page --- rsync.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 rsync.md 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. -- cgit v1.2.3