[OT] copy symbolic links as real file during syncing files.
王 鹏辉
wangpenghui at gmail.com
Mon Nov 13 01:23:35 UTC 2006
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.
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.
For example:
The host A:
-rw-r--r-- 1 wangpenghui wangpenghui 0 2006-11-13 09:14 aa
-rw-r--r-- 1 wangpenghui wangpenghui 0 2006-11-13 09:14 ab
-rw-r--r-- 1 wangpenghui wangpenghui 0 2006-11-13 09:14 ac
lrwxrwxrwx 1 wangpenghui wangpenghui 6 2006-11-13 09:14 ad -> /tmp/b
After the syncing,
The host B should looks like:
-rw-r--r-- 1 wangpenghui wangpenghui 0 2006-11-13 09:14 aa
-rw-r--r-- 1 wangpenghui wangpenghui 0 2006-11-13 09:14 ab
-rw-r--r-- 1 wangpenghui wangpenghui 0 2006-11-13 09:14 ac
drwxr-xr-x 1 wangpenghui wangpenghui 6 2006-11-13 09:14 ad
The directory ad should be the real folder of the old /tmp/b
I have tried some parameters of the command rsync. But no result too.
Every response will be appreciated.
Wang,
--
Wang Penghui
+86 592 8389 650
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20061113/4f4bc33f/attachment.html>
More information about the ubuntu-users
mailing list