CPUT Command

HSI Version:

All

Purpose:

Conditionally saves a file only if the HPSS file does not exist

Aliases: SAVE

Command Format:

{cput[] | s[ave]} [-A "string"] [-B | -b] [-h] [-n] [-P | -p] [-R | -r] [-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

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

Keywords:

BACKUP DIRn

Usage Notes:

This command never overwrites existing files, in contrast to the PUT command.

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

Example:

 

Related Command(s):

PUT, CGET, GET