From 24986abd0717cf40252f98269c22d7553f609ad9 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 6 Apr 1999 11:52:45 +0000 Subject: [PATCH] note in the man page that: 1) rsync won't copy directories at all if recursion isn't selected 2) --delete won't do anything if recursion isn't selected --- rsync.yo | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/rsync.yo b/rsync.yo index 30bdca6c..2ba99f87 100644 --- a/rsync.yo +++ b/rsync.yo @@ -325,7 +325,9 @@ of saying you want recursion and want to preserve everything. Note: if the user launching rsync is root then the -o (preserve uid) and -D (preserve devices) options are also implied. -dit(bf(-r, --recursive)) This tells rsync to copy directories recursively. +dit(bf(-r, --recursive)) This tells rsync to copy directories +recursively. If you don't specify this then rsync won't copy +directories at all. dit(bf(-R, --relative)) Use relative paths. This means that the full path names specified on the command line are sent to the server rather than @@ -434,6 +436,8 @@ dit(bf(--delete)) This tells rsync to delete any files on the receiving side that aren't on the sending side. Files that are excluded from transfer are excluded from being deleted unless you use --delete-excluded. +This option has no effect if directory recursion is not selected. + This option can be dangerous if used incorrectly! It is a very good idea to run first using the dry run option (-n) to see what files would be deleted to make sure important files aren't listed. -- 2.34.1