![]() |
![]() |
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 Windows 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
c:\h1\m1\file.a c:\h1\m1\file.b c:\h1\m1\l1\file.x c:\h1\m1\l1\file.y
Restores these directories and files:
c:\ann\h1\m1\file.a c:\ann\h1\m1\file.b
Restores these directories and files:
c:\ann\file.a c:\ann\file.b
Restores these directories and files:
c:\ann\m1\file.a c:\ann\m1\file.b
Restores these directories and files:
c:\ann\file.a c:\ann\file.b
dsmc res c:\h1\m1\ c:\ann\ -su=yes -preser= complete
Restores these directories and files:
c:\ann\h1\m1\file.a c:\ann\h1\m1\file.b c:\ann\h1\m1\l1\file.x c:\ann\h1\m1\l1\file.y
Restores these directories and files:
c:\ann\file.a c:\ann\file.b c:\ann\l1\file.x c:\ann\l1\file.y
Restores these directories and files:
c:\ann\m1\file.a c:\ann\m1\file.b c:\ann\m1\l1\file.x c:\ann\m1\l1\file.y
Restores these directories and files:
c:\ann\file.a c:\ann\file.b c:\ann\file.x c:\ann\file.y
dsmc res backupset c:\h1\m1\ c:\ann\ -su=yes -preser=nobase -loc=file
Restores these directories and files:
c:\ann\file.a c:\ann\file.b c:\ann\file.x c:\ann\file.y