rsync directory with symbolic links

cbarratt at cbarratt at
Wed Nov 12 08:34:49 EST 2003

Pirla writes:

> If a symlink is relative (like ../../file) the link is copied correctly
> If a symlink is absolute (like /root/document) the link is copied like
> (root/document) whithout the first slash.

man rsyncd.conf:

   use chroot
      If  "use  chroot"  is  true, the rsync server will chroot to the
      "path" before starting the file transfer with the client.   This
      has the advantage of extra protection against possible implemen-
      tation security holes, but it has the disadvantages of requiring
      super-user  privileges,  of  not  being  able to follow symbolic
      links outside of the new root path when reading, and of implying
      the  --numeric-ids option because /etc/passwd becomes inaccessi-
->    ble.  When "use chroot" is false, for security reasons  symlinks
->    may  only  be  relative paths pointing to other files within the
->    root path, and leading slashes are removed from absolute  paths.
->    The default for "use chroot" is true.


More information about the rsync mailing list