Two problems: -u together with -c and and a symlink problem
Matt McCutchen
matt at mattmccutchen.net
Sun Nov 21 18:12:31 MST 2010
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
More information about the rsync
mailing list