From ffa16f32ba3cee134856ff3a7e3eb5a3b2e3415d Mon Sep 17 00:00:00 2001 From: Hailiang Ma Date: Wed, 2 Dec 2026 14:04:28 +0800 Subject: [PATCH] rsync.1: fix --files-from note to refer to --relative The final note of the --files-from example says -r duplicates only the path info read from the file. That is the effect of --relative, which --files-from implies. Fixes: https://github.com/RsyncProject/rsync/issues/1211 Assisted-by: opencode:deepseek-v4.1-flash-1017 Signed-off-by: Hailiang Ma --- rsync.1.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/rsync.1.md b/rsync.1.md index b379e01df..fa6b5fce9 100644 --- a/rsync.1.md +++ b/rsync.1.md @@ -2789,9 +2789,10 @@ sign) if you want the local shell to expand it. [`-r`](#opt) option was enabled, that directory's entire hierarchy would also be transferred (keep in mind that [`-r`](#opt) needs to be specified explicitly with `--files-from`, since it is not implied by [`-a`](#opt). - Also note that the effect of the (enabled by default) [`-r`](#opt) option - is to duplicate only the path info that is read from the file -- it does - not force the duplication of the source-spec path (/usr in this case). + Also note that the effect of the (enabled by default) [`--relative`](#opt) + (`-R`) option is to duplicate only the path info that is read from the + file -- it does not force the duplication of the source-spec path (/usr in + this case). In addition, the `--files-from` file can be read from the remote host instead of the local host if you specify a "host:" in front of the file