At IU, how do I use HTAR with my SDA account?
Below is an example for using HTAR in a Cygwin command shell to put a file into Indiana University's Scholarly Data Archive (SDA):
$ htar.exe -cf test.tar "/cygdrive/c/IUware Online" Principal: jdoe [jdoe]Password: HTAR: HTAR SUCCESSFULHTAR can also be used to get files back from SDA. It will extract the files into the current working directory on the local machine. If you want the files to be in a new directory, try to create the new directory first. Then, change into the directory and run HTAR:
$ htar.exe -xvf test.tar Principal: jdoe [jdoe]Password: HTAR: Removing leading `/' from absolute path names in the archive HTAR: x /cygdrive/c/IUware Online/ ...... HTAR: HTAR SUCCESSFULTo extract one particular file or directory out of the archive in SDA, without bringing down the whole archive:
$ htar.exe -xvf test.tar "./path/to/myfile" Principal: jdoe [jdoe]Password: HTAR: x ./path/to/myfile, 1822520 bytes, 3561 media blocks HTAR: Extract complete for test.tar, 1 files. total bytes read: 1,823,232 in 2.110 seconds (0.864 MB/s ) HTAR: HTAR SUCCESSFULTo reconstruct an index for tar files whose index file is unavailable (e.g., accidentally deleted), or for tar files that were not originally created by htar:
$ htar -Xf test.tar Principal: jdoe [jdoe]Password: HTAR: HTAR SUCCESSFULWhen using HTAR, you may encounter one or more error messages similar to this:
ERROR: [unsigned32ToOctal]Octal field [thb_uid] overflow - width=8 value=-1These errors do not interfere with your file transfer, and can be safely ignored. They are caused by an obsolete feature in the TAR procedure, and will disappear in a future version of HTAR.
Last modified on May 18, 2011.







