-
-
Notifications
You must be signed in to change notification settings - Fork 751
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import/export-tar: support xattrs, ACLs and such via PAX format #2521
Comments
update from #5830: PAX format support is now basically present. |
Borg contributors could help with this, implementing this does not need too much knowledge of borg internals. How this could be improved:
|
Note: I didn't find clear docs about how the xattr keys and values need to be encoded. There is not just the "simple ascii text" case, but theoretically there could be also binary values or keys with "problematic" chars. Thus, solving this likely needs some digging into gnu tar or star C sources to find out how exactly this needs to get done. |
Found something: https://github.com/python/cpython/blob/3.9/Lib/tarfile.py#L1176 That tarfile code expects:
|
xattrs are done, #8467. ACLs still todo. |
PAX/POSIX format basically means one gets to put arbitrary key/value parts into file metadata in a backwards-compatible fashion.
GNU tar supports a proprietary extension for xattrs, apparently invented by Jörg Schilling: Just put them into the
SCHILY.xattr.<xattr>
key. (Source: GNU tar 1.29 source, file src/xheader.c, xhdr_tab)https://www.gnu.org/software/tar/manual/html_node/Extended-File-Attributes.html
The text was updated successfully, but these errors were encountered: