A few settings that come to mind from discussion with @denibertovic are:
Adding a isGZipped flag, which would automatically compress/decompress the tarball. An even better solution might be to infer at the .gz extension instead.
When extracting tarball make restoration of ownership an opt-in flag, since it only makes sense when executed under root
When creating tarball make it easy to set owner to root, since it is a common practice when creating distributions. (prevents leaking information about the user creating the archive)
A few settings that come to mind from discussion with @denibertovic are:
isGZipped
flag, which would automatically compress/decompress the tarball. An even better solution might be to infer at the.gz
extension instead.root
root
, since it is a common practice when creating distributions. (prevents leaking information about the user creating the archive)