rsync - usage examples

rsync -azvu --stats  --progress /source/folder/ user@host:"/target/folder/"

-a = archive
-z = compress
-v = verboe
-u = skip newer files on target

Additional flags of interest:
--remove-source-files = remove source files when they are transferred
--delete = delete files on target that are not in the source
-n = dry run, just test run without doing anything



Move files, like mv

The slash at the end of directory names matters, please test before trying.

This will:
--remove-source-files = remove source files when they are transferred
--delete = delete files on target that are not in the source
-S = copy sparse files, so that files that are in sparse mode stay the same or gets sparsed when moved
-u = update existing files

rsync -avuS --delete --remove-source-files --progress --stats /from /to

This is a personal note. Last updated: 2017-01-08 22:46:43.



GitHub

My

GitLab

My

LinkedIn

My

Klebe.se

Don't forget to pay my friend a visit too. Joakim