rsync giving directory by name, instead of contents
Wayne Davison
wayned at samba.org
Fri Aug 4 01:11:39 GMT 2006
On Wed, Aug 02, 2006 at 05:25:36PM -0400, nathan r. hruby wrote:
> rsync -avz server.edu::home/user1/public_html/ /dest/path/user1/www
> I get
> /dest/path/user1/www/public_html
> which has the correct contents. So things are being copied, just with an
> extra directory.
Something has to be stripping the slash, then. One possibility might be
your shell being overly "helpful". Another possibility might be that
you don't have chroot enabled, and the path sanitizer is acting up (I
haven't heard of a bug in this regard, but if this is an old version, it
might be possible).
You can try using a trailing "/." or even a trailing "/*" and see if
that helps avoid the problem. You could change the module's root to be
the public_html dir, which would avoid the problem nicely (but would
require you to have multiple modules defined if you needed multiple
public_html dirs). If nothing else, upgrade to a more recent version.
..wayne..
More information about the rsync
mailing list