preserving Mac OS X metadata in rsync backups and restores

Moritz Heckscher moritz.heckscher at gmx.de
Sat Jan 19 04:38:33 GMT 2008


Am 2008-01-19 um 05:31 schrieb Matt McCutchen:

> 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 .

Thanks for mentioning those diffs. I'll try tomorrow and report here.

>> 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.

Yes, I was expecting this to work. I did run as root (using sudo) and  
also tried --device and --specials, but these are already included in  
--archive. Hm, I'll run it again tomorrow, maybe I've messed up  
somehow (it's 05:30 in the morning...).

>> 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.

Yes, that absolutely makes sense. I shouldn't have included the  
output here. Obviously one would need a second "recover" step using  
rsync before checking with the tool.

> Matt

Thanks for your fast help, I'm learning a lot!
-Moritz


More information about the rsync mailing list