Dear Maintainer,
since version 1.27 tar honours ACLs and filesystem xattrs ( https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=254615 )
Many users would expect, that
tar c --directory orig/ . | tar x --directory restore/
would backup and restore files including permissions correctly. But that is not the case:
Create two directories and a file with acls and xattrs on a filesystem that supports them:
mkdir orig restore
touch orig/file_with_acl_capability_and_user_xattr
setcap cap_net_raw=p orig/file_with_acl_capability_and_user_xattr
setfattr -n user.testkey -v testvalue orig/file_with_acl_capability_and_user_xattr
setfacl -m u:nutzer23:rwx orig/file_with_acl_capability_and_user_xattr
Check whether xattrs and acls are there:
getfattr -m . -d orig/file_with_acl_capability_and_user_xattr
getfacl orig/file_with_acl_capability_and_user_xattr
Create a simple backup with tar:
tar c --directory orig/ . | tar x --directory restore/
Check whether xattrs and acls are still there:
getfattr -m . -d restore/file_with_acl_capability_and_user_xattr
getfacl restore/file_with_acl_capability_and_user_xattr
Thats not the case.
The authors of the acl and xattr patch were aware of this problem, but decided not to solve it:
https://bugzilla.redhat.com/show_bug.cgi?id=771927#c24