![]() |
![]() |
The preservepath option specifies how much of the source path to reproduce as part of the target directory path when you restore or retrieve files to a new location. Use the -subdir=yes option to include the entire subtree of the source directory (directories and files below the lowest-level source directory) as source to be restored. If a required target directory does not exist, it is created. If a target file has the same name as a source file, it is overwritten. Use the -replace=prompt option to have Tivoli Storage Manager prompt you before files are overwritten.
Supported Clients
This option is valid for all UNIX clients.
Syntax
.-subtree--. >>-PRESERvepath-+----------+----------------------------------->< +-complete-+ +-nobase---+ '-none-----'
Parameters
If you specify subdir=yes, Tivoli Storage Manager restores all files in the source directories to the single target directory.
Examples
/fs/h1/m1/file.a /fs/h1/m1/file.b /fs/h1/m1/l1/file.x /fs/h1/m1/l1/file.y
dsmc res /fs/h1/m1/ /u/ann/ -preser=complete
Restores these directories and files:
/u/ann/h1/m1/file.a /u/ann/h1/m1/file.b
dsmc res /fs/h1/m1/ /u/ann/ -preser=nobase
Restores these directories and files:
/u/ann/file.a /u/ann/file.b
dsmc res backupset /fs/h1/m1/ /u/ann/ -su=yes -preser=nobase -loc=file
Restores these directories and files:
/u/ann/file.a /u/ann/file.b /u/ann/file.x /u/ann/file.y
dsmc res /fs/h1/m1/ /u/ann/ -preser=subtree
Restores these directories and files:
/u/ann/m1/file.a /u/ann/m1/file.b
dsmc res /fs/h1/m1/ /u/ann/ -preser=none
Restores these directories and files:
/u/ann/file.a /u/ann/file.b
dsmc res /fs/h1/m1/ /u/ann/ -su=yes -preser=complete
Restores these directories and files:
/u/ann/h1/m1/file.a /u/ann/h1/m1/file.b /u/ann/h1/m1/l1/file.x /u/ann/h1/m1/l1/file.y
dsmc res /fs/h1/m1/ /u/ann/ -su=yes -preser=nobase
Restores these directories and files:
/u/ann/file.a /u/ann/file.b /u/ann/l1/file.x /u/ann/l1/file.y
dsmc res /fs/h1/m1/ /u/ann/ -su=yes -preser=subtree
Restores these directories and files:
/u/ann/m1/file.a /u/ann/m1/file.b /u/ann/m1/l1/file.x /u/ann/m1/l1/file.y
dsmc res /fs/h1/m1/ /u/ann/ -su=yes -preser=none
Restores these directories and files:
/u/ann/file.a /u/ann/file.b /u/ann/file.x /u/ann/file.y