rsync: add -rauL option (#3802)

Co-authored-by: Agniva De Sarker <agnivade@yahoo.co.in>
client-spec/clarity
Laura Dietz 2020-02-06 10:11:32 -05:00 committed by GitHub
parent c2b6060f6d
commit 206e00387d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -11,7 +11,7 @@
`rsync {{remote_host}}:{{path/to/remote_file}} {{path/to/local_directory}}`
- Transfer file in archive (to preserve attributes) and compressed (zipped) mode with verbose and human-readable progress:
- Transfer file in [a]rchive (to preserve attributes) and compressed ([z]ipped) mode with [v]erbose and [h]uman-readable [p]rogress:
`rsync -azvhP {{path/to/local_file}} {{remote_host}}:{{path/to/remote_directory}}`
@ -23,9 +23,9 @@
`rsync -r {{remote_host}}:{{path/to/remote_directory}}/ {{path/to/local_directory}}`
- Transfer only updated files from remote host:
- Transfer a directory [r]ecursively, in [a]rchive to preserve attributes, resolving contained soft[l]inks , and ignoring already transferred files [u]nless newer:
`rsync -ru {{remote_host}}:{{path/to/remote_directory}} {{path/to/local_directory}}`
`rsync -rauL {{remote_host}}:{{path/to/remote_file}} {{path/to/local_directory}}`
- Transfer file over SSH and delete local files that do not exist on remote host: