Rsync --Copy-links problem

Namitha Rao namithajr at gmail.com
Wed Apr 11 05:00:41 GMT 2007


Hi,

I am new to Rsync, but i have successfully used it to sync the contents
between two machines. Now the requirement is to sync the contents which are
symlinks. I need to sync the actual contents on client machine from these
symlinks.

I went through rsync tutorial and found --copy-links options to do my
job i.e, to transform symlink into referent file/dir


Issue:
Rsync Server :  The actual contents are in different location and the rsync
path has the softlink to the actual contents. I need to sync the actual
contents on the client machine.

I used --copy-links option but it doesn't seem to be working. Even the log
doesn't display any error.

Command used to sync the contents on client side:

---------------------------------------------------------------------------------------------------------------
#!/bin/bash

RSYNC="/usr/bin/rsync"
OPTS="--quiet --recursive -v  --copy-links --perms --times -D --delete
--timeout=300"
SRC="rsync://10.10.10.x/portage"
DST="/x/rsync/"

echo "Started update at" `date` >> $0.log 2>&1
logger -t rsync "re-rsyncing the gentoo-portage tree"
${RSYNC} ${OPTS} ${SRC} ${DST} >> $0.log 2>&1

echo "End: "`date` >> $0.log 2>&1

---------------------------------------------------------------------------------------------------------------


If anyone has any idea how to sync the contents from symlinks kindly help me
out..


Thanks In Advance..

Namitha.
-------------- next part --------------
HTML attachment scrubbed and removed


More information about the rsync mailing list