Bug 6376 - Trailing slashes avoid creating directories in daemon mode
Trailing slashes avoid creating directories in daemon mode
Status: RESOLVED WORKSFORME
Product: rsync
Classification: Unclassified
Component: core
3.0.6
x64 FreeBSD
: P3 enhancement
: ---
Assigned To: Wayne Davison
Rsync QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-05-19 10:30 UTC by Bernard Treves Brown
Modified: 2009-09-05 10:31 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bernard Treves Brown 2009-05-19 10:30:58 UTC
The man page compares:
rsync -av /src/foo /dest
rsync -av /src/foo/ /dest/foo
and states that in the second case no foo directory is created on the client. 

This behaviour would be useful in daemon mode, so that
rsync -av host::module/lower/ /dest/
does not create a directory /dest/lower/ but copies everything into /dest/

Thanks
Comment 1 Matt McCutchen 2009-05-19 10:46:38 UTC
(In reply to comment #0)
> This behaviour would be useful in daemon mode, so that
> rsync -av host::module/lower/ /dest/
> does not create a directory /dest/lower/ but copies everything into /dest/

That is what the command currently does.  Are you proposing a change?
Comment 2 Wayne Davison 2009-09-05 10:31:23 UTC
The only thing different about daemon mode is that a trailing module name does not create a trailing directory (which it kinda looks like it should).  For instance:

rsync -aiv host::module /dest/

That command does not create /dest/module since the module name is not a part of the path.