diff --git a/pages/common/rsync.md b/pages/common/rsync.md index 634d25112b..a88c6d03fd 100644 --- a/pages/common/rsync.md +++ b/pages/common/rsync.md @@ -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: