[OT] copy symbolic links as real file during syncing files
wangpenghui at gmail.com
Tue Nov 14 00:44:04 UTC 2006
On 11/13/06, Johan Ramm-Ericson <ubuntu at ramm-ericson.se> wrote:
> On Mon, November 13, 2006 02:48, wangpenghui at gmail.com wrote:
> > Hello list,
> > Recently, i am using rsync to sync two directories which located in two
> > different hosts.
> > There is something unclearly to me. I digged in the web for a while, but
> > there aren't useful things for me.
> You would have found it in the man page for rsync or at :
> > Here is my puzzle:
> > I want to sync one big directory from one host to a remote host. And
> > are several symbolic links which linked to some files and directories
> > outside the certain directory. I want to copy the symbolic links as real
> > file or directory.
> > snip .. <
> Something like this:
> rsync -avL hostA:/path/to/source/dir/ hostB:/path/to/destination/dir/
Thanks very much for your response.
I have found the reason why the links could not copied.
It because i have not set "use chroot = no " in the rsyncd.conf. And the
default value is yes.
Now, with the -L (--copy-links) parameter, it works great.
Thanks again for your help.
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
+86 592 8389 650
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ubuntu-users