ARCHIVED: Using Tivoli Storage Manager, how do I restore files from the command line?
Using the restore
command
To retrieve backup copies of your files from a Tivoli Storage Manager
(TSM) server or backupset, use the restore
command. You
can specify the source directory or individual file to restore, or you
can choose the files from a list. You can also choose whether to
restore the files to their original directory, or to a different
location. By default, restore
restores all subdirectories
from the source you choose; to change this behavior, use the
preservepath
option.
-replace=prompt
to the
restore
command.Using the preservepath
option
You can specify how much of the backup's path structure is reproduced
with restore
by using the preservepath
option. Use -subdir=yes
to reproduce the entire directory
structure of the source location in the restoration. If directories in
this structure do not exist in the target location, they are
automatically created.
You can use preservepath
with:
restore
restore backupset
restore group
retrieve
restore was
Examples
The examples below use the Unix and Mac OS X path notation. Be aware that the specific syntax of the paths may be different for other operating systems. In the examples, the server file space contains the following backup copies:
/fs/h1/m1/file.a /fs/h1/m1/file.b /fs/h1/m1/l1/file.x /fs/h1/m1/l1/file.y
Command | Files and directories restored
|
---|---|
dsmc res /fs/h1/m1/ /u/ann/ -preser=complete |
/u/ann/h1/m1/file.a
|
dsmc res /fs/h1/m1/ /u/ann/ -preser=nobase |
/u/ann/file.a
|
dsmc res backupset /fs/h1/m1/ /u/ann/ -su=yes -preser=nobase -loc=file |
/u/ann/file.a
|
dsmc res /fs/h1/m1/ /u/ann/ -preser=subtree |
/u/ann/m1/file.a
|
dsmc res /fs/h1/m1/ /u/ann/ -preser=none |
/u/ann/file.a
|
dsmc res /fs/h1/m1/ /u/ann/ -su=yes -preser=complete |
/u/ann/h1/m1/file.a
|
dsmc res /fs/h1/m1/ /u/ann/ -su=yes -preser=subtree |
/u/ann/m1/file.a
|
dsmc res /fs/h1/m1/ /u/ann/ -su=yes -preser=none |
/u/ann/file.a
|
This is document axsb in the Knowledge Base.
Last modified on 2018-01-18 16:14:14.