How to change permissions on a directory without meaning to... - include/exclude semantics

Wayne Davison wayned at samba.org
Wed Oct 8 04:04:42 EST 2003


On Tue, Oct 07, 2003 at 10:45:13AM -0700, jw schultz wrote:
> Also, it is incorrect.  The trailing slash means the contents of the
> directory (excluding .).

Nope.  The code specifically adds the '.' dir to the list of files to
send, which is why the attributes get sent and why recursion occurs.
The verbose output even mentions "./" explicitly when it updates the
attributions, so this is not something that is hidden from the user.

> What i was talking about regarding a documentation addition was
> something discussing the root dir ("/") which is more awkward to to
> specify copy the contents but not the directory.

There's no difference between copying "/dir/" and "/" in how rsync
treats it.  The only difference with "/" is that you can't copy this
directory by name.  "Copy the contents" always copies the directory, so
I don't see what you mean by "copy the contents and not the directory".

..wayne..



More information about the rsync mailing list