Hacker News new | past | comments | ask | show | jobs | submit login

How is that possible?



I read that some of the key information is in attributes unique to Apple's file systems, I can't find the source but that was my conclusion after trying to figure out what went wrong in the Time-Machine/Synology/Rsync-via-webdav system I set up for my father some years ago.

If you rsync ext4 files to exfat, you also have issues, but those are very clearly reported when you attempt to do so.


It makes sense that you loose some information from a posix filesystem to exfat, but from HFS+ to lets say XFS? Both can have extended attributes..hmm

However hold on, i do some research. Now you hooked me ;)

EDIT: Ok got it, both Filesystem NEED xattrs enabled, and you need to run rsync with the -X or --xattrs option, that should fix the problems.


Extended attributes are messy. E.g. the equivalent on Windows (ADS, not EA, which also exist separately) can store arbitrary amounts of data, I'd expect resource forks on macOS to be similar. Meanwhile Linux only supports 64 KB of data for them, though most Linux-native file systems have an even lower one block limit. And then there's Solaris where extended attributes are actually an FS namespace.

So even if both file systems support extended attributes, does not mean that you can actually preserve them.


>Meanwhile Linux only supports 64 KB

Yes, absolutely true, thanks for the addition:

-Linux max 64kb (some filesystems just 4k)

-HFS+ max 128kb, But MacOS theoretically supports up to 64MB!

-FreeBSD max 64MB with UFS2 or ZFS

-Windows 65536 bytes with NTFS

So from BSD (MacOS) to BSD should/could work.

Truly messy stuff :)


So build your own NAS on BSD+ZFS and use rsync w/xattr's? Not a bad solution theoretically...


Keep in mind that your mounted NFS needs to support xattrs too :)

mount -t nfs -o user_xattr

I just found out that ~only? the Solaris/illumOS NFS-server supports that, and the Linux Client since Kernel 5.9

With all that information..i honestly would just make a dump of my FS and backup the dump, terrible i know.


This is the advantage of the "newfangled" backup tools which don't just copy files from A to B and can do (but not always do!) a much better job at a) not caring about your backup destination's file system b) not losing data that's more complicated than "name and contents".


I was hoping to hook someone, looking forward to what you find :)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: