diff --git a/pages/common/rsync.md b/pages/common/rsync.md index 82f389ab52..379f742dcc 100644 --- a/pages/common/rsync.md +++ b/pages/common/rsync.md @@ -1,14 +1,14 @@ # rsync > Transfer files either to or from a remote host (but not between two remote hosts), by default using SSH. -> To specify a remote path, use `host:path/to/file_or_directory`. +> To specify a remote path, use `user@host:path/to/file_or_directory`. > More information: . - Transfer a file: `rsync {{path/to/source}} {{path/to/destination}}` -- Use archive mode (recursively copy directories, copy symlinks without resolving and preserve permissions, ownership and modification times): +- Use archive mode (recursively copy directories, copy symlinks without resolving, and preserve permissions, ownership and modification times): `rsync --archive {{path/to/source}} {{path/to/destination}}` @@ -24,9 +24,9 @@ `rsync --recursive {{path/to/source}}/ {{path/to/destination}}` -- Recursively copy directories, use archive mode, resolve symlinks and skip files that are newer on the destination: +- Use archive mode, resolve symlinks and skip files that are newer on the destination: -`rsync --recursive --archive --update --copy-links {{path/to/source}} {{path/to/destination}}` +`rsync --archive --update --copy-links {{path/to/source}} {{path/to/destination}}` - Transfer a directory to a remote host running `rsyncd` and delete files on the destination that do not exist on the source: