Re: [gentoo-user] [OT] some two more rsync questions
On 11/19/10 00:08:06, Mick wrote: On Wednesday 17 November 2010 12:16:48 Helmut Jarausch wrote: 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 (real) subdirectory of DestDir Now doing rsync -auHz --delete --exclude=/A SourceDir/ DestDir/ does remove A on DestDir - why ? I don't know the answer to your 1st question, but I think that the answer to your 2nd question is that A on the DestDir is removed because of the -- delete option. According to the man page: --delete delete extraneous files from dest dirs. Thanks Mick, but --exclude protects against deletion. My problem was that I did use rsync -auHz --delete --exclude=/A/SourceDir/ DestDir/ .^ because A is a directory on DestDir. But it turned out that this does delete A on DestDir since A is a symlink on SourceDir and the include/exclude pattern is applied to the SourceDir only. Helmut. -- Helmut Jarausch Lehrstuhl fuer Numerische Mathematik RWTH - Aachen University D 52056 Aachen, Germany
Re: [gentoo-user] [OT] some two more rsync questions
On Wednesday 17 November 2010 12:16:48 Helmut Jarausch wrote: 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 (real) subdirectory of DestDir Now doing rsync -auHz --delete --exclude=/A SourceDir/ DestDir/ does remove A on DestDir - why ? I don't know the answer to your 1st question, but I think that the answer to your 2nd question is that A on the DestDir is removed because of the -- delete option. According to the man page: --delete delete extraneous files from dest dirs. -- Regards, Mick signature.asc Description: This is a digitally signed message part.
[gentoo-user] [OT] some two more rsync questions
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 (real) 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.