The restore backupset command restores a backup set from the Tivoli® Storage Manager server, a local file, or a local tape device. You can restore the entire backup set, or, in some cases, specific files within the backup set.
This command is valid for all clients.
>>-REStore Backupset--+-------------------------------------+---> +-+-----------------+--sourcefilespec-+ | '-{filespacename}-' | '-SYSTEMSTATE-------------------------' >--+---------------------+--+---------+-- -BACKUPSETName= ------> '-destinationfilespec-' '-options-' >--+-backupsetname-+--+--------------------------+------------->< +-localfilename-+ '- -LOCation= --+-server-+-' '-tapedevice----' +-file---+ '-tape---'
Specify a file space name when you restore a backup set containing a group.
Specify a file space name when the sourcefilespec does not exist on the target computer. This can occur if the drive label name has changed or if you are restoring files that were backed up from another node that had drive labels that are different from yours.
Note: You must specify a mixed or lowercase NTFS or ReFS
file space name that is enclosed in quotation marks and braces. For
example, {"NTFSDrive"}. Single quotation marks are valid in loop mode.
For example: {"NTFSDrive"} and {'NTFSDrive'} are both valid. In batch
mode, only single quotation marks are valid. The single quotation
marks requirement is a restriction of the operating system.| Option | Where to use |
|---|---|
| dirsonly | Command line only. |
| filesonly | Command line only. |
| ifnewer | Command line only. |
| preservepath | Command line only. |
quiet |
Client options file (dsm.opt) or command line. |
quiet |
Client user options file (dsm.opt) or command line. |
replace |
Client options file (dsm.opt) or command line. |
replace |
Client user options file (dsm.opt) or command line. |
skipntpermissions |
Client options file (dsm.opt) or command line. |
subdir |
Client options file (dsm.opt) or command line. |
subdir |
Client user options file (dsm.opt) or command line. |
dsmc restore backupset
-backupsetname=monthly_financial_data.87654321
-loc=server
Taskdsmc restore backupset
-backupsetname="/home/budget/weekly_budget_data.ost"
-loc=file
Taskdsmc restore backupset
"-backupsetname=/dev/rmt0" -loc=tape
Taskdsmc restore backupset
-backupsetname=/dev/rmt0 "/home/jones/budget.dev"
-loc=tape
Taskdsmc restore backupset "/home/budget/*.txt"
-backupsetname=/dev/rmt0 -loc=tape
Taskdsmc restore backupset
-backupsetname="/home/jones/bset01.file"
-loc=file
Taskdsmc restore backupset {/accounting}/*
/home/devel/projectb/
-backupsetname=mybackupset.12345678 -loc=server
-subdir=yes
Taskdsmc restore backupset {/accounting}/*
/home/devel/projectb/
-backupsetname=mybackupset.ost
-loc=server -subdir=yes
Taskdsmc restore backupset
-backupsetname=\\.\tape0 -loc=tape
Taskdsmc restore backupset {accounting}\*
c:\newdevel\projectn\
-backupsetname=mybackupset.12345678
-loc=server -subdir=yes
Taskdsmc restore backupset
-backupsetname=c:\budget\weekly_budget_data.ost
-loc=file
Taskdsmc restore backupset m:\budget\*
-backupsetname=c:\budget\weekly_budget_data.ost
-loc=file -subdir=yes
Taskdsmc restore backupset m:\budget\salary.xls
-backupsetname=c:\budget\weekly_budget_data.ost
-loc=file -subdir=yes
Taskdsmc restore backupset systemstate
-BACKUPSetname=c:\recovery\backupsetfile.name
-loc=file -replace=all