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




Task



Restore the entire backup set contained in the file: /home/budget/weekly_budget_data.ost. dsmc restore backupset
-backupsetname="/home/budget/weekly_budget_data.ost"
-loc=file




Task



Restore the entire backup set from the /dev/rmt0 device. dsmc restore backupset
"-backupsetname=/dev/rmt0" -loc=tape




Task



Restore a single file named /home/jones/budget.dev from
the /dev/rmt0 tape device, to the original source
path. dsmc restore backupset
-backupsetname=/dev/rmt0 "/home/jones/budget.dev"
-loc=tape




Task



Restore all files in the budget directory that contain a file
extension of .txt from the tapes on the /dev/rmt0 device,
to the original source path. dsmc restore backupset "/home/budget/*.txt"
-backupsetname=/dev/rmt0 -loc=tape




Task



Restore the entire backup set contained in local file named "/home/jones/bset01.file" dsmc restore backupset
-backupsetname="/home/jones/bset01.file"
-loc=file




Task



Restore groups from the backup set mybackupset.12345678 on
the Tivoli Storage Manager server
to the /home/devel/projectb directory. The groups'
virtual file space is accounting.dsmc restore backupset {/accounting}/*
/home/devel/projectb/
-backupsetname=mybackupset.12345678 -loc=server
-subdir=yes




Task



Restore groups from the local backup set mybackupset.ost to
the /home/devel/projectb/ directory. The groups'
virtual file space is accounting.dsmc restore backupset {/accounting}/*
/home/devel/projectb/
-backupsetname=mybackupset.ost
-loc=server -subdir=yes
Task
Restore the entire backup set from the \\.\tape0 device. dsmc restore backupset
-backupsetname=\\.\tape0 -loc=tape
Task
Restore groups from the backup set mybackupset.12345678 on
the Tivoli Storage Manager server
to the c:\newdevel\projectn directory. The groups'
virtual file space is accounting.dsmc restore backupset {accounting}\*
c:\newdevel\projectn\
-backupsetname=mybackupset.12345678
-loc=server -subdir=yes
Task
Restore the entire backup set contained in the file: c:\budget\weekly_budget_data.ost. dsmc restore backupset
-backupsetname=c:\budget\weekly_budget_data.ost
-loc=file
Task
Restore the \budget\ directory and subdirectories
from the backup set contained in the file: c:\budget\weekly_budget_data.ost. dsmc restore backupset m:\budget\*
-backupsetname=c:\budget\weekly_budget_data.ost
-loc=file -subdir=yes
Task
Restore the file \budget\salary.xls from
the backup set contained in the file: c:\budget\weekly_budget_data.ost. dsmc restore backupset m:\budget\salary.xls
-backupsetname=c:\budget\weekly_budget_data.ost
-loc=file -subdir=yes
Task
Restore the system state that is contained in the backup set file: \recovery\backupsetfile.name.
Replace all components; do not prompt for each component.dsmc restore backupset systemstate
-BACKUPSetname=c:\recovery\backupsetfile.name
-loc=file -replace=all