Rsync:处理绝对符号链接

通读了rsync手册页后,我看不到rsync在机器之间自动转换绝对符号链接的任何方法,即
Server A
file -> /home/username/path/file

Server B
file -> /home/differentusername/path/file

任何想法(记住rsync只能在/ home / username /下运行)?

解决方法

这些信息会导致解决方案吗?

来自man rsync:

. . .

If you
want to duplicate a server-side symlink,include both the symlink via its path,and referent directory via its real path.

. . .

It is also possible to limit the amount of path information that
is sent as implied directories for each path you specify. With
a modern rsync on the sending side (beginning with 2.6.7),you
can insert a dot and a slash into the source path,like this:

rsync -avR /foo/./bar/baz.c remote:/tmp/

That would create /tmp/bar/baz.c on the remote machine. (Note
that the dot must be followed by a slash,so “/foo/.” would not
be abbreviated.)

. . .

[省略了有关rsync早期版本的一些信息]

相关文章

insmod和modprobe加-f参数导致Invalid module format错误 这...
将ArchLinux安装到U盘 几个月前入门Arch的时候上网搜了不少安...
1、安装Apache。 1)执行如下命令,安装Apache服务及其扩展包...
一、先说一下用ansible批量采集机器信息的实现办法: 1、先把...
安装配置 1. 安装vsftpd 检查是否安装了vsftpd # rpm -qa | ...
如何抑制stable_secret读取关键的“net.ipv6.conf.all.stabl...