Examples of Command Line Interface
This section illustrates some common uses of the Command Line Interface.
Example 1: BACK UP DATA
The following backup define command uses the -c argument not only to start the command line interface but to define and run a backup job called "job1" in a single step. The backup job "job1" uses the definition file "cmdfile."
The following is the "cmdfile" definition file used by the previous command.
Command Type | Command |
OPTIONSBACKUP |
|
Example 2: BACK UP CATALOG
The following backup define command uses the -c argument not only to start the command line interface but to define a backup job called "job1" in a single step. The backup job "job1" backs up the Catalog and uses the definition file "cmdfile."
The following is the "cmdfile" definition file used by the previous command.
Command Type | Command |
OPTIONSBACKUP |
|
Example 3: RUN BACKUP
The following backup run command uses the -c argument not only to start the command line interface but to run the backup job "job1" defined in Example 2 in a single step.
Example 4: BACK UP IMAGE
The following backup define command uses the -run argument to define and run the backup job "job1," which backs up image data from filer "node1" to "/vol1/" and uses the definition file "cmdfile."
The following is the "cmdfile" definition file used by the previous command.
Command Type | Command |
OPTIONSBACKUP |
|
Example 5: BACK UP NDMP DATA
The following backup define command uses the -run argument to define and run the backup job "job1," which backs up NDMP data from filer "node1" to "/vol1/" and uses the definition file "cmdfile."
The following is the "cmdfile" definition file used by the previous command.
Command Type | Command |
BACKUP |
|
Example 6: BACK UP SNAPVAULT
The following backup define command uses the -run argument to define and run the backup job "job1," which backs up SnapVault data from filer "node1" to "/vol1/" and uses the definition file "cmdfile."
The following is the "cmdfile" definition file used by the previous command.
Command Type | Command |
BACKUP |
|
Example 7: RESTORING FROM CATALOG
The following restore define command uses the -c argument not only to start the command line interface but to define a restore job called "job1" in a single step. The restore job "job1" restores a file called "file1," using the Catalog to find the tape that contains the file, and uses the definition file "cmdfile."
The following is the "cmdfile" definition file used by the previous command. The SELECT statement is used to restore the specific file. The file is restored to its original location on the "node1" node. The job is deleted upon its successful completion.
Command Type | Command |
OPTIONSRESTORE |
|
Example 8: RESTORING FROM CATALOG
The following restore define command uses the -run argument to define and initiate a restore job that restores all the files in the directory "/vol1/." The restore job "job1" uses the definition file "cmdfile."
The following is the "cmdfile" definition file used by the previous command. It restores files from a specific time period to a new location. The job is deleted upon its successful completion.
Command Type | Command |
OPTIONSRESTORE |
|
Example 9: RESTORING FROM CATALOG
The following restore run command restores all files from directory "/vol1/" on the "node1" node except "/vol1/dir1/." The restore job "job1" uses the definition file "cmdfile."
Example 10: RESTORE FROM TAPE:
The following restore define command uses the -run argument to define and run the restore job "job1." The restore job "job1" uses the definition file "cmdfile."
The following is the "cmdfile" definition file used by the previous command. It restores the file "/file1" from tape "tape1" partition 1 to its original location using device cluster "cluster1."
Command Type | Command |
OPTIONSRESTORE |
|
Example 11: RESTORE CATALOG
The following restore define command uses the -c argument not only to start the command line interface but to define a restore job called "job1" in a single step. The restore job "job1" restores the Catalog and uses the definition file "cmdfile."
The following is the "cmdfile" definition file used by the previous command.
Command Type | Command |
OPTIONS RESTORE |
|
Example 12: RESTORE IMAGE
The following restore define command uses the -run argument to define and run the restore job "job1." The restore job "job1" uses the definition file "cmdfile."
The following is the "cmdfile" definition file used by the previous command. It restores image data from "/vol1/" to its original location on filer "node1."
Command Type | Command |
OPTIONS RESTORE |
|
Example 13: RESTORE NDMP DATA
The following **restore define*8 command uses the -run argument to define and run the restore job "job1." The restore job "job1" uses the definition file "cmdfile."
The following is the "cmdfile" definition file used by the previous command. It restores NDMP data from "/vol1/" to its original location on filer "node1."
Command Type | Command |
**OPTIONS RESTORE*8 |
|
Example 14: RESTORE SNAPVAULT
The following restore define command uses the -run argument to define and run the restore job "job1." The restore job "job1" uses the definition file "cmdfile."
The following is the "cmdfile" definition file used by the previous command. It restores SnapVault data from "/vol1/" to its original location on filer "node1."
Command Type | Command |
OPTIONS RESTORE |
|
Example 15: DUPLICATING VOLSERS
The following duplicate define command uses the -c argument not only to start the command line interface but to define a duplicate job called "job1" in a single step. The duplicate job "job1" duplicates all the volsers related to the job instance specified in the definition file "cmdfile." The duplicate job "job1" uses the definition file "cmdfile."
The following is the "cmdfile" definition file used by the previous command. The volsers used in the duplicate job "job1," 12345678 and 12345679, will be duplicated. The twinned tapes will be marked off-site in the Catalog.
Command Type | Command |
OPTIONS DUPLICATE |
|
Example 16: DUPLICATE DEFINE
The following duplicate define command uses the -run argument to define and initiate a duplicate job. The duplicate job "job1" uses the definition file "cmdfile."
The following is the "cmdfile" definition file used by the previous command. It duplicates all the volsers related to the latest job instance of a job named "job1."
Command Type | Command |
OPTIONS DUPLICATE |
|
Example 17: DUPLICATE RUN
The following duplicate run command starts a duplicate job named "job1."
Last updated