OS X backups?

5 views
Skip to first unread message

Finn Hughes

unread,
Nov 27, 2012, 7:04:19 PM11/27/12
to back...@googlegroups.com
Hi,

I was looking at using rsync with the --extented-attributes option to preserver ACLs and resource forks. I believe this is what will allow me to backup OS X thinks like the iPhoto library successfully.

However since myself and my girlfriend share a lot of content, multi-user block based deduplication is very interesting and hence I've come across backshift :)

Do you know if backshift can backup OS X ACLs and resource forks, is it likely to work or be easy to add?

If you can't see any showstoppers I'll try and find the time and energy to have a play sometime in the next month or so.

Thanks,
Finn

Dan Stromberg

unread,
Nov 27, 2012, 7:35:52 PM11/27/12
to back...@googlegroups.com

Backshift does not currently back up any extended attributes.

It's unlikely to be easy to add (it'd probably require a ctypes-based module), but if you come up with patches that pass pylint, I'd be happy to merge them.
--
Dan Stromberg

Finn Hughes

unread,
Nov 27, 2012, 8:04:30 PM11/27/12
to back...@googlegroups.com
Thanks for the speedy response,

A bit more involved than I was hoping then, I've got a passing familiarity with ctypes, and while it makes Python look ugly, it's not too bad ;)

I've had a quick google and found this rsync patch
http://quesera.com/reynhout/misc/rsync+hfsmode/

It looks involved enough that if I did have a look I would be largely reusing his GPL code and even then it looks a little problematic, he's suggesting mechanisms to force checksumming of the ACLs and resource forks as modification time and size are not reliable indicators of if the file has changed... needs more thought when I'm less tired.

Finn

Dan Stromberg

unread,
Nov 27, 2012, 8:07:31 PM11/27/12
to back...@googlegroups.com

Backshift re-saves all metadata it knows about on every backup, so there's no need to diff metadata. Hopefully that'll keep things a little simpler.
--
Dan Stromberg
Reply all
Reply to author
Forward
0 new messages