Re: [RSync] Re: rsync for the brave
Matt McCutchen wrote:
(My boss' last name is the same as yours.)[color=blue]
> --delete-excluded prevents the --exclude="Network Trash Folder" rule
> from protecting the "Network Trash Folder" on the destination from
> deletion; that's the whole point of --delete-excluded.[/color]
Aha! No wonder ...
> To protect this
> directory, you'll need to use a rule that explicitly applies to both the
> sender (s) and the receiver (r):
> --filter="-sr Network Trash Folder"[/color]
Awesome, that works great.
> By the way, if some of your excludes are intended to match only files at
> the top level of F: (rather than in a subdirectory), consider anchoring
> them with a leading slash, e.g.:[/color]
Can I assume that this is purely for performance (checking every
single folder, versus just where it actually resides)?
Another issue I'm having are files that rsync says vanished, but
didn't actually vanish. One such error can be seen in this log snippet:
2008/11/10 10:14:32  building file list
2008/11/10 10:14:32  file has vanished: "/cygdrive/g/ICON?"
2008/11/10 10:14:33  .d...p..... ./
2008/11/10 10:14:33  IO error encountered -- skipping file deletion
2008/11/10 10:14:33  .d...p..... LJ 430/
2008/11/10 10:14:33  .d...p..... LJ 430/5668 Monastery Icons/
Notice how it reports the file vanishing then it skips deletion.
Thing is, that file has not vanished. Instead, it's a Mac created file
that contains an extra character behind the file name - not sure if it's
an LF or CR or what, but rsync can't deal with them.
In this particular case, I can filter this file out, however there's
a possibility of more files like that showing up throughout the backup
process, valid files that we do want backed up, and I can't always
ignore them. And if they're going to cause the file deletion process to
be skipped, that will pose a problem and inconsistency on the backup volume.
W | It's not a bug - it's an undocumented feature.
Ashley M. Kirchner <mailto:firstname.lastname@example.org> . 303.442.6410 x130
IT Director / SysAdmin / Websmith . 800.441.3873 x130
Photo Craft Imaging . 3550 Arapahoe Ave. #6
[url]http://www.pcraft.com[/url] ..... . . . Boulder, CO 80303, U.S.A.
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: [url]https://lists.samba.org/mailman/listinfo/rsync[/url]
Before posting, read: [url]http://www.catb.org/~esr/faqs/smart-questions.html[/url]