jonandermb
Explorer
- Joined
- Jan 15, 2014
- Messages
- 76
I'm trying to backup my Freenas Folders. Now this is my setup:
Freenas (Latest) serving shares to Mac users via AFP
To backup, i plug a USB drive to a Mac machine, this disk is formatted with Mac OS Plus filesystem
The files on the AFP share have their attributes plus extended attributes.
When rsyncing via AFP, meaning, pulling from afp share to the local usb disk on the Mac machine, the performance is quite slow and i get the feeling, some files are copied over again.
Now, rsync on the Mac machines is version 2.x, quite old.
I submit the -E flag when pulling the files, but this seems to be a Mac-specific thing, patched by Apple on the rsync version they ship. When pulling via AFP, the server recognizes this flag and sens over the xattr and they get properly stored on the external USB disk backup.
Now, rsync 3.x implements the -X flag to deal with extended attributes, so I installed it via macports on the Mac machine and tried to rsync via ssh but the remote server (freenas) does not seem to like the idea very much and fails (you get a null pointer exception usually after a couple of transfers)
Of course, if you try to rsync via ssh submitting the Mac-olny -E flag, freenas's rsync respondas that the option is unrecognized. The file transfers via ssh, without extended attributes modifiers is quite fast, however.
Can anyone shed a bit of light on this issue and help me troubleshoot how to rsync via ssh keeping xattr and also why rsync keeps pulling some files, even though they were not modified when over AFP?
BTW: This server has aroung 300k files+folders being served via AFP.
Thanks
Freenas (Latest) serving shares to Mac users via AFP
To backup, i plug a USB drive to a Mac machine, this disk is formatted with Mac OS Plus filesystem
The files on the AFP share have their attributes plus extended attributes.
When rsyncing via AFP, meaning, pulling from afp share to the local usb disk on the Mac machine, the performance is quite slow and i get the feeling, some files are copied over again.
Now, rsync on the Mac machines is version 2.x, quite old.
I submit the -E flag when pulling the files, but this seems to be a Mac-specific thing, patched by Apple on the rsync version they ship. When pulling via AFP, the server recognizes this flag and sens over the xattr and they get properly stored on the external USB disk backup.
Now, rsync 3.x implements the -X flag to deal with extended attributes, so I installed it via macports on the Mac machine and tried to rsync via ssh but the remote server (freenas) does not seem to like the idea very much and fails (you get a null pointer exception usually after a couple of transfers)
Of course, if you try to rsync via ssh submitting the Mac-olny -E flag, freenas's rsync respondas that the option is unrecognized. The file transfers via ssh, without extended attributes modifiers is quite fast, however.
Can anyone shed a bit of light on this issue and help me troubleshoot how to rsync via ssh keeping xattr and also why rsync keeps pulling some files, even though they were not modified when over AFP?
BTW: This server has aroung 300k files+folders being served via AFP.
Thanks