9.1 Using HSI to Backup Filesystems
A common method of backing up large filesystems on UNIX workstations is to Use the `tar' utility in conjunction with HSI to create a backup file on HPSS, by piping the output of TAR to HSI. For example, suppose you wish to backup the filesystem "/usr". Enter the following:

To retrieve the file segments and recreate the original directory contents, enter

[ PAGE TOP ]


9.2 Wildcard Tricks

[ PAGE TOP ]


9.3 File Integrity and Backup
HPSS stores data on mirrored disk and put two copies on separate tapes. However, no archive or offsite backup of data is made. It is your responsibility to back up critical files!

[ PAGE TOP ]



9.4 Using Recursion for Project Management
You can use the recursion features available in HSI to simplify the management of projects. The GET, LS, SAVE, STORE and RM commands all support recursion by specifying `-R'. For example, suppose your project consists of the directory tree: then the command can be used to save the directory "MyProject" and all of its files and subdirectories, automatically creating subdirectories as required.

Conversely, the command

can be used to fetch the directory and all of its files and subdirectories, automatically creating local subdirectories as required.

[ PAGE TOP ]



9.5 Frequently Used Requests
If you have a set of HSI keywords that you often use to establish your HPSS keyset environment, you should consider setting the values and keeping them as a keyset. See KEEP Command and ADOPT Command in Chapter 7.

[ PAGE TOP ]



9.6 Listing Very Large Directories
It may sometimes be necessary to list HPSS directories containing a very large number of nodes. Normally, the entire set of directory entry names is first read into memory and sorted to allow for listing by columns, rows, etc. If this fails due to memory exhaustion or it simply takes too long, the "-O" option may be specified on the LS command to cause the directory entries to be listed in the order that they are read, and not attempt to sort them. This is also the fastest method of listing a directory.

[ PAGE TOP ]



9.7 Retrieving Large Files
Users having trouble retrieving files over 25 GB in size may wish to use the -S option for the get or mget commands. The -S option was added to allow users to disable staging files from tape, specifically for this type of situation. The syntax is:

get -S [other options] local : hpss [local : hpss ...]

The usage message that is displayed by typing "get" with no options, will also explain the -S flag.

[ PAGE TOP ]



9.8 Operating System Considerations for One-Liners
Special considerations apply to HSI one-liner requests which contain certain characters, including wild card characters. Some operating systems and some command languages have defined certain characters, such as the asterisk (*) and the double quote("), to have special meanings, so procedures should be followed if such characters are to be passed to HSI without local interpretation. UNIX-based systems support wildcards, but in varying ways, depending upon the command shell in use, so you should know the effect these systems will have on your results. Be aware when using locally supported wildcard capabilities that HPSS restrictions on legal file name characters and legal file name length will still apply. You should be wary when using wildcards in HSI paths in command files.

See Operating System Considerations for UNIX-Based Systems in Section 4 for more operating system-specific information.

[ PAGE TOP ]