I would like to copy/sync files from a Linux box to a FreeBSD server. As the files tend to have extended attributes, I want to preserve these on the target file system.
The source filesystems are either Ext4 or BTFRS, the target filesystem is ZFS with extended attributes enabled.
What works is: first tar'ing files on the Linux box and then untar'ing it on the BSD box
linux > tar -cvf --xattrs tmp.tar test.file ...copy... bsd > tar -xv tmp.tar
As it is clunky, I am looking for a more straight forward way.
What not works are: transfers/copies over
- NFS3/4 - as it does not know about extended attributes, and
- rsync via ssh or with a rsyncd