eeadm save

Saves the name of empty files, empty directories, and symbolic links on the tape pool, or pools.

The commands can be used with the mmapplypolicy command by specifying the command name and command options in the EXEC and OPTS statements in the policy file, as in the following example:

RULE EXTERNAL POOL 'tape_tier'
EXEC '/opt/ibm/ltfsee/bin/eeadm'
OPTS '-p MyPool1@Lib1,MyPool2@Lib2'

The mmapplypolicy command first identifies the files that match the LIST rule for the eeadm list command or the ltfseesave command, and then passes the list of files to the command in the EXEC statement. The EXEC statement then initiates the data movement between the tiers.

Alternatively, you can create the list of files manually and run the command by specifying the list as <inputfile>.

Syntax

eeadm save <inputfile> -p <list_of_pools> [OPTIONS]
eeadm list <inputfile> --save -p <list_of_pools> [OPTIONS]
ltfseesave <inputfile> -p <list_of_pools> [OPTIONS]
Required parameters
<inputfile>
Specifies the name of the input file that defines the files to save. The file must be in the following format:
  • Each line ends with -- <filename> with a space before and after the double dash (the file list record format of the mmapplypolicy command).
  • Each line contains a file name with an absolute path or a relative path that is based on the working directory.

If <inputfile> is omitted, the command attempts to read the names of files to save from stdin.

The lines must be separated by a single LF character (0x0A), and the LF character in the file name must be escaped as \n .

-p, --pools <list_of_pools>
Specifies up to three target tape pools to which the files are saved. If multiple pools are specified, they must be separated by a comma. The tape pool can be specified in the one of the following formats. The second format (pool_name) can be used only in a single tape library configuration.
  • pool_name@library_name
  • pool_name

The -p option must be specified in the OPTS parameter of the EXTERNAL POOL rule if this command is used with the mmapplypolicy command.

--save
This option is required in OPTS if the LIST policy is used.
Common options
-h, --help
Shows this help text and exit.

Return codes

0 (zero)
The operation completed successfully for all of the specified files.
Nonzero
The operation failed for all or some of the specified files.

Examples

eeadm save CANDIDATES.LST -p MyPool1
eeadm save CANDIDATES.LST -p MyPool1@MyLibrary1,MyPoolB@MyLibrary2
find . -type f -size 0 | eeadm save -p MyPool
find . -type d -empty | eeadm save -p MyPool