Re: selinux and rsync backup to zfs dataset

Andrei Borzenkov <[email protected]>
Newsgroups gmane.linux.suse.general
Message-ID <[email protected]>
08.06.2026 22:36, [email protected] wrote:
...

> 
> /usr/bin/rsync --archive --one-file-system --acls --xattrs --filter=-x
> security.selinux --verbose --verbose --stats --no-human-readable /boot/
> backup:/var/backup/machines/client/boot/
> 
> opening connection using: ssh backup rsync --server
> -vvlogDtpAXrxe.iLsfxCIvu --stats . /var/backup/machines/client/boot/  (8
> args)
> sending incremental file list
> lots of:
> [sender] hiding xattr security.selinux because of pattern
> security.selinux
> 

I get this too. But after that on the receiving side I get


delta-transmission enabled
[generator] protecting xattr security.selinux because of pattern 
security.selinux
test1

Both when the source has and has not SELinux label.

What version of rsync? From the NEWS file

# NEWS for rsync 3.2.0 (19 Jun 2020)
...
  - Fix xattr filter rules losing an 'x' attribute in a non-local transfer.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.