PUT Command

HSI Version:

2.7

Purpose:

Saves or replaces a file. If the HPSS file does not exist, a new file is created; if the HPSS file exists, it is overwritten.

Aliases: REPLACE, SEND, STORE

Command Format:

{p[ut] | send | st[ore] | r[eplace]} [-A "string"] [-B | -b] [-h] [-n] [-P | -p] 
      [-R | -r] [-t] [-U | -u]  path ... 

Options:

-A : annotation string for HPSS file (type "annotate ?"for more details)

-B | -b : backup option. Renames existing HPSS file by appending "~"

-h : symlink option. If specified, create symlink in HPSS if local symlink. If not set, reads through local symlinks when copying files to HPSS

-n days : only put files modified within last "days" number of day

-P | -p : preserve timestamp. Attempts to copy local file's timestamp to HPSS file

-R | r : recursively store directories

-t : "re-put" option. Restart a previously failed operation, using the size of the HPSS file as the starting point.

-U | -u : update option. Only copy file to HPSS if local file timestamp is newer

Keywords:

BACKUP DIRn

Usage Notes:

This command always overwrites existing files, in contrast to the CPUT command.

The -R option may be specified to recursively STORE a directory tree. In this case, HPSS subdirectories are automatically created as needed while traversing the local directory tree.

Example:

put local_file_name : hpss_file_name

Related Command(s):

CPUT, GET