HPSS archiving tools
Commands
hsiStarts an interactive session use sparingly and mostly for navigating HPSShtarLiketarcommand but with some extra features use this to archive
HSI
Only use for exploring the file system. Puts you into an interactive session to explore your “HPSS” space. Most Linux commands will work as usual such as pwd, ls, cd, etc. albeit with some different options. There is also save and get commands to archive and grab files from HPSS respectively.
Simply type hsi in SDCC rcas nodes to enter into interactive session
Single line Examples
These commands should be executed from SDCC rcas nodes only and not during interactive session
hsi "pwd"will print your home directory on HPSShsi "ls"will show files in your home directory on HPSShsi "get path/to/filename"will restore filenamehsi "save path/to/filename"will archive filename
HTAR
Like Linux tar command but with some important differences. htar will automatically create a compressed file and archive that. It creates an index file that will allow you to see the files without grabbing them off HPSS. This means if you use hsi to browse your files you will see two actual files: one for the index, and the other is the data. You must always supply an “Action” flag. These can be found in the links above. The examples below highlight the most useful ones.
Examples
htar -c -f hpssfilename /path/to/files/*.rootcompresses and archives all root files in/path/to/files- NB: Overwrite is automatic and doesn’t prompt
- NB: Preserves directory structure; i.e. if command above is executed, then the restored file(s) will get restored to
<cwd>/path/to/files/file.root. However ifhtar -c -f hpssfilename *.rootis executed then the files will get restored to<cwd>/file.root.
htar -x -f path/to/hpss/filenameextracts the files in filename- NB: If file being extracted exists overwrites without prompting
htar -t -f path/to/hpss/filenameshows the files in filename