Rsync Re: Trailing /

Gary Aviv gary.aviv at intec.us
Fri Nov 8 14:54:01 EST 2002


On Fri, 8 Nov 2002, Lachlan Cranswick wrote:

> 
> What should be the official behaviour here?
> 

> I must admit some of my scripts probably have both
> trailing and non-trailing "/".  But just played around
> until it was mirroring into the correct directory.
> 
> Lachlan.
> 

I think it should be consistent: i.e.

rsync -auv clam::root/usr/local/bin/ /tmp/bin

should work the same as

rsync -auv clam:/usr/local/bin/ /tmp/bin

which is to copy the contents of /usr/local/bin
as the man page says.


> At 18:20 07/11/02 -0500, you wrote:
> >It appears that the trailing slash in the source is being ignored:
> >
> >rsync -auv clam::root/usr/local/bin/ /tmp/bin  
> >
> >ends up with files under /tmp/bin/bin
> >where 
> >
> >rsync -auv clam:/usr/local/bin/ /tmp/bin
> >
> >works as expected.
> >
> >rsync -auv 'clam::root/usr/local/bin/*' /tmp/bin
> >
> >also works as expected.
> >




More information about the rsync mailing list