rsync doesn't preserve ACL permissions

Forssux

Explorer
Joined
Mar 13, 2013
Messages
67
Hi there,

I'm trying to backup data from TrueNAS-12.0-U8
I need the ACL's else in my opinion you don't have a backup.

The moment I use the -A it trhows a error.
I want to backup from time to time (not automated).


rsync -avAX --progress /mnt/QData/NonMedia root@192.168.1.70:/home/guyf/nonmedia
root@192.168.1.70's password:
sending incremental file list
recv_acl_index: ACL_TYPE_ACCESS ACL index 4 > 0
rsync error: error in rsync protocol data stream (code 12) at acls.c(740) [Receiver=3.2.3]
rsync: [sender] write error: Broken pipe (32)
rsync error: error in rsync protocol data stream (code 12) at io.c(820) [sender=3.1.3]
 
Joined
Oct 22, 2019
Messages
3,641
Maybe it has something to do with this? Emphasis mine.
Right, our system rsync works correctly for TrueNAS to TrueNAS. ACL support for FreeBSD to Linux has never really worked (incompatible ACL types implemented).

 

Forssux

Explorer
Joined
Mar 13, 2013
Messages
67
Thanks for answering..

I guess I will have better luck with TrueNAS Scale..
Fingers crossed
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,553
ZFS on FreeBSD doesn't support POSIX ACLs (ACL_TYPE_ACCESS, ACL_TYPE_DEFAULT), instead it has NFSv4 ACL type. You can choose ACL type in SCALE though.
 
Joined
Oct 22, 2019
Messages
3,641
ZFS on FreeBSD doesn't support POSIX ACLs (ACL_TYPE_ACCESS, ACL_TYPE_DEFAULT), instead it has NFSv4 ACL type. You can choose ACL type in SCALE though.
Does this mean that having used and populated a ZFS dataset under FreeBSD (i.e, TrueNAS CORE), and then importing this pool into a Linux system (i.e, TrueNAS SCALE), your existing ACLs from the earlier usage under FreeBSD will still be transferable via rsync to a Linux target?
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,553
Does this mean that having used and populated a ZFS dataset under FreeBSD (i.e, TrueNAS CORE), and then importing this pool into a Linux system (i.e, TrueNAS SCALE), your existing ACLs from the earlier usage under FreeBSD will still be transferable via rsync to a Linux target?
On-disk format is different. Conversion from NFSv4 to POSIX ACL is lossy. For SCALE to SCALE nfsv4 rsync you will need to explicitly specify the system.nfs4_acl_xdr xattr.
 
Top