Hello everybody, I am using rsync to make an identical mirror of an existing server. It's been working fine since some time now. Now, I've just added a firewire disk to both servers and created a symlink to the mounted disk within the source and destination trees: Server P (source, rsync is running as a daemon on this server): /Images |___Project1 |___Project2 |___fwdisk (this is a symlink pointing to /fwdisk, created using ln -s /fwdisk /Images/fwdisk) Server H (destination): /Images |___Project1 |___Project2 |___fwdisk (symlink pointing to /fwdisk) Only the Images module is exported on the source server. I don't want to export the fwdisk directory. I want all files in /Images/fwdisk (which is actually /fwdisk) to be copied from Server P to Server H (to the corresponding directory, i.e, to /fwdisk via the symlink /Images/fwdisk on Server H). Any help is appreciated. Thanks in advance.
On Wed, Jun 29, 2005 at 10:53:00AM +0400, apache7@gmx.net wrote:> Now, I've just added a firewire disk to both servers and created a > symlink to the mounted disk within the source and destination trees:Rsync copies symlinks as symlinks unless the --copy-links option is given, in which case all symlinks are replaced by the referent object. However, if the symlink points outside of a module's path, it cannot be copied (because that would be a security problem). If you want to copy the contents of the fwdisk directory, I'd suggest either making a new daemon module for that path and copying it separately, or using "bind" mounts instead of symlinks (if possible on your OS) to mount the same dir into multiple places (on both the source and destination). ..wayne..
Apparently Analagous Threads
- rsync'ing a directory with nothing but symlinks
- Firewire question (Centos 4.4)
- [Bug 13827] New: despite --copy-unsafe-links, rsync does not copy the referent of symlinks that point one level outside the copied tree
- --copy-unsafe-links does not work for "double" symlinks
- How to circumvent "Symlink has no referent"?