Re: lazy old guy asks question
On Fri, Aug 29, 2025 at 11:03:20PM +0000, Andy Smith wrote:
> - By default doesn't preserve extended attributes unless you make use of
> some quite obscure options that you'll have to look up in the
> documentation: --xattrs --xattrs-include='*.*' (both required, no I
> can never remember this)
Good point, some backup programs do.
See:
https://wiki.archlinux.org/title/Extended_attributes#Preserving_extended_attributes
Although the getfattr command needs the option '-m -' to make it get all of them.
I have been playing with it to see how it recorded POSIX ACLs. You get lines
like the one below; I have not worked out what it means
system.posix_acl_access=0sAgAAAAEABwD/////AgABAG4AAAACAAEAdQAAAAQAAQD/////EAABAP////8gAAAA/////w==
The corresponding ACL is:
$ getfacl /var/www/acme/SignedCertificates/
# file: var/www/acme/SignedCertificates/
# owner: acme
# group: www-data
# flags: -s-
user::rwx
user:Debian-exim:--x
user:_rpc:--x
group::--x
mask::--x
other::---
Something to investigate.
If you really want everything about a file system then the output of "tune2fs -l"
is also interesting.
--
Alain Williams
Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer.
+44 (0) 787 668 0256 https://www.phcomp.co.uk/
Parliament Hill Computers. Registration Information: https://www.phcomp.co.uk/Contact.html
#include <std_disclaimer.h>
Reply to: