note in the man page that:
authorAndrew Tridgell <tridge@samba.org>
Tue, 6 Apr 1999 11:52:45 +0000 (11:52 +0000)
committerAndrew Tridgell <tridge@samba.org>
Tue, 6 Apr 1999 11:52:45 +0000 (11:52 +0000)
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

index 30bdca6..2ba99f8 100644 (file)
--- 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.