[OT] copy symbolic links as real file during syncing files
Johan Ramm-Ericson
ubuntu at ramm-ericson.se
Mon Nov 13 06:59:57 UTC 2006
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/
/johan
More information about the ubuntu-users
mailing list