![]() |
![]() |
The restore command obtains copies of backup versions of your files from a server. To restore files, specify the directories or selected files, or select the files from a list. Restore files to the directory from which you backed them up or to a different directory. Tivoli Storage Manager uses the preservepath option with the subtree value as the default for restoring files. For more information, see Preservepath.
If you set the subdir option to yes when restoring a specific path and file, Tivoli Storage Manager recursively restores all subdirectories under that path, and any instances of the specified file that exist under any of those subdirectories.
System trustee rights are restored as part of the file restore process. They cannot be restored alone.
You can use the restore command to restore a backup set. See Restore Backupset for the syntax.
Syntax
.----------------------.
.- FILE-. V |
>>-REStore--+-------+--+----------+----+-sourcefilespec---+-+--->
'- options-' '-DIRectory or NDS-'
>--+----------------------+------------------------------------><
'- destinationfilespec-'
Parameters
You can use these common options with the restore command: replace, subdir. See Chapter 9, Using Processing Options for information about common options.
restore dir:* -sub=yes
To restore one container, enter:
dir:.o=container_name
In all examples, you may enter nds: instead of dir:.
Examples
Command: dsmc restore sys:u/projecta/budget
Command: dsmc res sys:u/projecta/*.bak
Command: dsmc res servb\sys:user/project/* -pick -inactive
Attention: If the destination is a directory, specify the delimiter (/) as the last character of the destination. If you omit the delimiter and your specified source is a directory or a file spec with a wildcard, you will receive an error.
Command: dsmc res sys:projecta/*.bak sys:projectn/
Command: dsmc restore sys:projecta/*.bak serverb\sys:projectn/
Command: dsmc res T9.dir:* -su=y -replace=y
Command: dsmc res adsm40.directory.o=ibm
Command: dsmc res servb\sys:user/projedct/* -pick -inactive
Command: dsmc res sys:dir1/dir2/restorelist.txt sys:home/NewRestoreLocation/