Trouble transferring referents of symlinks outside the source tree

Munish Chopra mchopra at engmail.uwaterloo.ca
Sat Oct 5 02:59:01 EST 2002


I'm running rsync 2.5.5 on a FreeBSD-CURRENT system.

I have a directory that essentially is my web site, which I update when
need be. I am (trying) to use rsync to sync a remote server with my
changes whenever they are made.

I'm using a little script to do this:


#!/bin/sh

DATA_DIR=/home/munish/data/www 
REMOTE_BACKUP=[snipped out user at host here]
RSYNC_FLAGS="-zapuLxSC --stats --progress --copy-unsafe-links --bwlimit=20"

echo -n "Sync'ing www..."
rsync ${RSYNC_FLAGS} ${DATA_DIR}/* ${REMOTE_BACKUP}:
echo "Done."

exit 0

Now, $DATA_DIR contains a subdirectory named freebsd/configs, which
looks like this:

munish  users  29 Sep 29 01:39 OPIATE -> /usr/src/sys/i386/conf/OPIATE
munish  users  19 Sep 29 01:39 XF86Config -> /etc/X11/XF86Config
munish  users  36 Sep 29 01:57 freebsd-apps.txt -> ../../../../library/freebsd-apps.txt
munish  users  39 Sep 29 01:57 freebsd-install.txt -> ../../../../library/freebsd-install.txt
munish  users  14 Sep 29 01:39 ftpd.conf -> /etc/ftpd.conf
munish  users  17 Sep 29 01:39 loader.conf -> /boot/loader.conf
munish  users  14 Sep 29 01:40 make.conf -> /etc/make.conf
munish  users  20 Sep 29 01:58 muttrc -> /home/munish/.muttrc
munish  users  28 Sep 29 01:40 ports-supfile -> /usr/local/etc/ports-supfile
munish  users  31 Sep 29 01:40 standard-supfile -> /usr/local/etc/standard-supfile

When I run my sync script, only files in/under my home dir are sync'ed.
Any symlinks pointing outside my home dir are ignored completely, even
though I have the -L flag and --copy-unsafe-links specified (yes, I want
it to copy the referent of the symlink).

I've looked at the FAQ and asked around, but I can't figure out what's
going on. If anyone has an (undoubtedly simple) answer, I'd really
appreciate it.

Thanks.

(Please cc me, I'm not subscribed to the list).

-- 
Munish Chopra



More information about the rsync mailing list