1. To write the files "file1" and "file2" to a new archive called "files.tar" in the current HPSS home directory, enter:
% htar -cvf files.tar file1 file2
a /tmp/HTAR_CF_CHK_20890_1063223592
Create complete. 1,730,048 bytes written, max threads: 4
Transfer time: 0.742 seconds (2.331 MB/s)
2. To extract all files from the "project1/src" directory in the Archive file called "proj1.tar", and use the time of extraction as the modification time, enter:
%htar -xvm -f proj1.tar project1/src
x project1/src/file1, 847668 bytes, 1657 media blocks
x project1/src/file2, 879332 bytes, 1719 media blocks
Extract complete. total bytes read: 1,729,024 in 0.836 seconds (2.067 MB/s )
3. To display the names of the files in the "out.tar" archive file within the HPSS home directory, enter:
drwxrwxr-x hpss/hpss 0 2003-09-10 14:56 project1/
drwxrwxr-x hpss/hpss 0 2003-09-10 14:57 project1/src/
-rwxrwxr-x hpss/hpss 847668 2003-09-10 14:51 project1/src/file1
-rwxrwxr-x hpss/hpss 879332 2003-09-10 14:51 project1/src/file2
-rw------- hpss/hpss 256 2003-09-10 14:58 /tmp/HTAR_CF_CHK_20923_1063223886
4. To create the index file for the archive file "file.tar", which exists in the HPSS home directory, enter:
[build index] Overwrite existing index file 'files.tar.idx'? [Y/N] Y
i /tmp/HTAR_CF_CHK_20890_1063223592