[RSync] Re: rsync for the brave

Ashley M. Kirchner ashley at pcraft.com
Mon Nov 10 17:59:10 GMT 2008


Matt McCutchen wrote:

    (My boss' last name is the same as yours.)
> --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.
    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"
    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.:
    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 [504] building file list
2008/11/10 10:14:32 [504] file has vanished: "/cygdrive/g/ICON?"
2008/11/10 10:14:33 [504] .d...p..... ./
2008/11/10 10:14:33 [504] IO error encountered -- skipping file deletion
2008/11/10 10:14:33 [504] .d...p..... LJ 430/
2008/11/10 10:14:33 [504] .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:ashley at pcraft.com>   .   303.442.6410 x130
  IT Director / SysAdmin / Websmith             .     800.441.3873 x130
  Photo Craft Imaging                       .     3550 Arapahoe Ave. #6
  http://www.pcraft.com ..... .  .    .       Boulder, CO 80303, U.S.A. 



More information about the rsync mailing list