On Tuesday 24 June 2008 12:02:26 am Matt McCutchen wrote: > On Sun, 2008-06-22 at 22:26 +0000, Corey wrote: <snip> > > Is there a way of forcing rsync to link these relatively rather than > > fully-qualitive? <snip> > No, rsync does not support this kind of symlink rewriting, unless you > want to hack the "munge symlinks" code to prepend /backupdir instead > of /rsyncd-munged/ and remove the check that the prepended directory > doesn't exist. > > In this situation, I would just change the source symlinks to relative > paths. If there's a reason why you don't want to do that, tell me and I > might be able to figure something out. >
THanks -- I ended up with your suggestion to just change the symlinks to relative on my own (using find and readlink); that worked easily enough... can't expect rsync to do _everything_ for me... <grin> > > Second question: > > > > Is there a way of using --exclude to reference symlink _targets_, rather > > than the filename itself? > > No. There's an enhancement request for this capability: > > https://bugzilla.samba.org/show_bug.cgi?id=1670 > I'll add my original use-case to that feature request, in case it's useful - but I was able to get around this issue in an entirely different way: luckily for me, I was able to simply remove or relocate those other extraneous symlinks before setting up the rsync jobs, so that made things easy - rather than working with things as they were, I was fortunate enough to be able to modify the environment to be more suitable for the rsync. Beers! -- Please use reply-all for most replies to avoid omitting the mailing list. To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
