<br><div><span class="gmail_quote">On 11/13/06, <b class="gmail_sendername">Johan Ramm-Ericson</b> <<a href="mailto:ubuntu@ramm-ericson.se">ubuntu@ramm-ericson.se</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>On Mon, November 13, 2006 02:48, <a href="mailto:wangpenghui@gmail.com">wangpenghui@gmail.com</a> wrote:<br>> Hello list,<br><br>Hi.<br><br>> Recently, i am using rsync to sync two directories which located in two
<br>> different hosts.<br>><br>> There is something unclearly to me. I digged in the web for a while, but<br>> there aren't useful things for me.<br><br>You would have found it in the man page for rsync or at :
<br><a href="http://rsync.samba.org/ftp/rsync/rsync.html">http://rsync.samba.org/ftp/rsync/rsync.html</a><br><br>> Here is my puzzle:<br>><br>> I want to sync one big directory from one host to a remote host. And there
<br>> are several symbolic links which linked to some files and directories that<br>> outside the certain directory. I want to copy the symbolic links as real<br>> file or directory.<br>> snip .. <<br><br>Something like this:
<br><br>rsync -avL hostA:/path/to/source/dir/ hostB:/path/to/destination/dir/</blockquote><div><br><br>Thanks very much for your response. <br>I have found the reason why the links could not copied.<br>It because i have not set "use chroot = no " in the 
rsyncd.conf. And the default value is yes.<br><br>Now, with the -L (--copy-links) parameter, it works great.<br><br>Thanks again for your help.<br><br>Wang.<br> </div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
/johan<br><br>--<br>ubuntu-users mailing list<br><a href="mailto:ubuntu-users@lists.ubuntu.com">ubuntu-users@lists.ubuntu.com</a><br><a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-users">https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
</a><br></blockquote></div><br><br clear="all"><br>-- <br>Wang Penghui<br>+86 592 8389 650