Am 03.07.09 17:58 schrieb(en) Alan Hodgson:
Does anyone have a working example of using amgtar to backup ACLs and/or selinux attributes?

Apparently Fedora comes with a patched tar which supports xattr's, see <https://bugzilla.redhat.com/show_bug.cgi?id=200925> and <https://bugzilla.redhat.com/show_bug.cgi?id=472355>. I believe it is possible to compile it manually for your disto.

It seems that any of the --acls, --selinux or --xattrs flags are actually incompatible with the --listed-incremental flag to GNU tar? I hacked the --xattrs option into amgtar but I can't seem to get it to work with --listed-incremental, which it seems is necessary for incremental backups.

My /usr/local/sbin/amgtar is simply a shell script wrapping the Fedora tar as to include the extended attributes:

<snip>
#!/bin/sh
/opt/bin/setar --xattrs "$@"
</snip>

Hope this helps,
Albrecht.

Attachment: pgpXej0AbJ5lo.pgp
Description: PGP signature

Reply via email to