Htar
HTAR¶
HTAR (short for "HPSS TAR") is a utility program that writes TAR-compatible archive files directly onto Gautschi, without having to first create a local file. Its command line was originally based on tar, with a number of extensions added to provide extra features.
HTAR is provided on all research systems as the command htar. HTAR is also available for download for many operating systems.
Usage:
Create a tar archive on Gautschi named data.tar including all files with the extension ".fits":
Unpack a tar archive on Gautschi named data.tar into a scratch directory for use in a batch job:
Look at the contents of the data.tar HTAR archive on Gautschi:
Unpack a single file, data5.fits, from the tar archive on Gautschi named data.tar into a scratch directory:
HTAR Archive Verification¶
HTAR allows different types of content verification while creating archives. Users can ask HTAR to verify the contents of an archive during (or after) creation using the '-Hverify' switch. The syntax of this option is:
| Option | Explanation |
|---|---|
| info | Compares tar header info with the corresponding values in the index |
| crc | Enables CRC checking of archive files for which a CRC was generated when the file is added to the archive |
| compare | Enables a byte-by-byte comparison of archive member files and their local file counterparts |
| nocrc | Disables CRC checking of archive files |
| nocompare | Disables a byte-by-byte comparison of archive member files and their local file counterparts |
Users can use a comma-separated list of options shown above, or a numeric value, or the wildcard all to specify the degree of verification. The numeric values for Hverify can be interpreted as follows:
An example to verify an archive during creation using checksums (crc):
An example to verify a previously created archive using checksums (crc):
Please note that the time for verifying an archive increases as you increase the verification level. Carefully choose the option that suits your dataset best.
For details please see the HTAR Man Page.
For more information about HTAR:
Important
HTAR has an individual file size limit of 64GB. If any files you are trying to archive with HTAR are greater than 64GB, then HTAR will immediately fail. This does not limit the number of files in the archive or the total overall size of the archive. To get around this limitation, try using the htar_large command. It is slower than using htar but it will work around the 64GB file size limit. The usage of htar_large is almost the same as htar except that htar_large will not generate the tar index file. Thus, the -Hverify=1 option cannot be used since it's based on the index file. This does not limit the number of files in the archive or the total overall size of the archive.