[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,
>
> Hi.
>
> > 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 :
> http://rsync.samba.org/ftp/rsync/rsync.html
>
> > Here is my puzzle:
> >
> > I want to sync one big directory from one host to a remote host. And
> there
> > are several symbolic links which linked to some files and directories
> that
> > 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.
Wang.
/johan
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
--
Wang Penghui
+86 592 8389 650
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20061114/9ee4757b/attachment.html>
More information about the ubuntu-users
mailing list