rsync'ing a directory with nothing but symlinks
Matt McCutchen
matt at mattmccutchen.net
Wed Feb 17 17:52:56 MST 2010
On Wed, 2010-02-17 at 18:14 -0300, Gerardo Herzig wrote:
> Matt McCutchen wrote:
> > By default, the daemon chroots into the root directory of the module,
> > which is causing the symlinks to be interpreted differently than you
> > intend. Try setting "use chroot = no".
> >
> Thanks Matt, but still no luck. After "chroot = no" (and chroot =
> false), and restarting the service, i get the same thing:
>
> mataco:/backup/files/vchiriguano # rsync -avz --copy-links
> backup at machinegun::backup .
> receiving file list ... symlink has no referent: "/cgi-bin" (in backup)
> rsync: readlink_stat("/etc" (in backup)) failed: Too many levels of
> symbolic links (40)
> done
>
> sent 61 bytes received 259 bytes 640.00 bytes/sec
> total size is 0 speedup is 0.00
> rsync error: some files could not be transferred (code 23) at main.c(1158)
>
> Im stucked here :(
The name of the parameter is "use chroot", not "chroot". I can only
assume that's the problem, since the output is clearly a result of
chrooting.
--
Matt
More information about the rsync
mailing list