preserving Mac OS X metadata in rsync backups and restores

Matt McCutchen matt at mattmccutchen.net
Sat Jan 19 04:31:11 GMT 2008


On Sat, 2008-01-19 at 05:12 +0100, Moritz Heckscher wrote:
> Using the following options for rsync:
> 
> --archive --hard-links --acls --xattrs --executability --numeric-ids
> 
> I get the following output from backup-bouncer: [...]
> Verifying:            bsd-flags ... FAIL

BSD flags are handled by flags.diff in rsync-patches-3.0.0pre8.tar.gz .

> Verifying:         finder-locks ... FAIL

A request for enhancement was recently entered for finder locks:

https://bugzilla.samba.org/show_bug.cgi?id=5188

But Wayne says he thinks they are handled by flags.diff too.

> Verifying:        creation-date ... FAIL

Creation dates are handled by osx-create-time.diff .

> Verifying:                 fifo ... FAIL
> Verifying:              devices ... FAIL

These are supposed to work with --archive, at least if rsync runs as
root.  In any event, you probably don't care about these if you're just
backing up user data.

> Adding --fake-super to the options of rsync doesn't help:

Naturally, because that option makes rsync wrap the source metadata in
an rsync-specific extended attribute that it sets on the destination
file, whereas the checker tool is expecting the real destination
metadata to be set.

Matt



More information about the rsync mailing list