From 4bf7d6eb4c1c34228af583d851903773777f7f01 Mon Sep 17 00:00:00 2001 From: Harry Han Date: Sat, 4 Nov 2023 16:43:03 +0000 Subject: [PATCH] rsync: update page (#11375) * rsync: update page --------- Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com> --- pages/common/rsync.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pages/common/rsync.md b/pages/common/rsync.md index 82f389ab5..379f742dc 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: