Helmut Jarausch
2010-Nov-15 17:33 UTC
Two problems: -u together with -c and and a symlink problem
Hi, I have two problems with rsync 1st) if I give both commandline options -u and -c it looks as if a file which is more recent but different on the destination is not updated, i.e. -u overrules -c Is that true? 2nd) There is a symlink A on <SourceDir> which refers to a directory On the other hand, A is the name of a subdirectory of <DestDir> Now doing rsync -auHz --delete --exclude=/A <SourceDir>/ <DestDir>/ does remove A on <DestDir> - why ? I'm using rsync-3.0.7 . Many thanks for a hint, Helmut. -- Helmut Jarausch Lehrstuhl fuer Numerische Mathematik RWTH - Aachen University D 52056 Aachen, Germany
Matt McCutchen
2010-Nov-22 01:12 UTC
Two problems: -u together with -c and and a symlink problem
On Mon, 2010-11-15 at 18:33 +0100, Helmut Jarausch wrote:> I have two problems with rsync > > 1st) if I give both commandline options -u and -c > it looks as if a file which is more recent but different > on the destination is not updated, i.e. -u overrules -c > Is that true?Yes, that is the expected behavior.> 2nd) There is a symlink A on <SourceDir> which refers to a directory > On the other hand, A is the name of a subdirectory of <DestDir> > > Now doing > rsync -auHz --delete --exclude=/A <SourceDir>/ <DestDir>/ > does remove A on <DestDir> - why ?It shouldn't. Pass -vv and you should get a message like this: [generator] protecting file A because of pattern /A If you don't, double-check that you wrote the exclude rule correctly. If you do, something weirder is going on. -- Matt