Talk:Tape Archive
Contents |
Misc. stuff about tape archive
Jörg Schilling's tar can recreate files with original user ID/group ID when extracting tarball
It should be possible to extract a tarball using sudo star -zxv -f example.tar.gz
or alternatively, doas star -zxv -f example.tar.gz
to preserve original user/group ID. The same likewise with also preserving the original permissions, e.g. sudo star -zxpv -f example2.tar.gz
. Unsure if this is useful for adding into Tape Archive or it is better to leave it as Talk:Tape Archive once I figure out what were the steps.
Jörg Schilling's tar can recreate files with creation timestamps when extracting tarball
-ctime
is the switch needed, but according to the man
page,
If star is run as root and if -ctime is used with the extract command and the same archive formats, this causes star to try to restore even the ctime of a file by generating time storms. You should not do this when in multi user mode because this may confuse programs like cron and the news system. Although star tries to eliminate the accumulative effects of the time storm, there is a tendency for the system clock to slow down a bit. The clock typically lags about one millisecond per extracted file. Use with care and check the system clock after using this feature.
Again, unsure if shis should be added.
BSD tar and certain ZIP files that retains original user ID/group ID
Some ZIP files, possibly ZIP files created with InfoZIP under Unix-like environment may retain user/group ID. While Jörg Schilling's tar can also enumerate/extract a ZIP file's original user/group IDs, via possibly `-7z` switch, BSDtar (especially libarchive's variant) does appear to handle it transparently, e.g. bsdtar -tvf example3.zip
.
Then again, this particular section might be better placed under the ZIP page.
Anonymoususer852 (talk) 17:28, 29 July 2025 (UTC)