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.
Use the preservepath option with the following commands:
This option is valid for all clients. The Tivoli Storage Manager client API does not support this option. The server can also define this option.
.-Subtree--. >>-PRESERvepath = -+----------+-------------------------------->< +-Complete-+ +-NOBase---+ '-NONe-----'
If you specify SUBDIR=yes, Tivoli Storage Manager restores all files in the source directories to the single target directory.
/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
/u/ann/h1/m1/file.a
/u/ann/h1/m1/file.b
dsmc res /fs/h1/m1/ /u/ann/ -preser=nobase
/u/ann/file.a
/u/ann/file.b
dsmc res backupset /fs/h1/m1/ /u/ann/ -su=yes
-preser=nobase -loc=file
/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
/u/ann/m1/file.a
/u/ann/m1/file.b
dsmc res /fs/h1/m1/ /u/ann/ -preser=none
/u/ann/file.a
/u/ann/file.b
dsmc res /fs/h1/m1/ /u/ann/ -su=yes -preser=complete
/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
/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
/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
/u/ann/file.a
/u/ann/file.b
/u/ann/file.x
/u/ann/file.y
c:\h1\m1\file.a
c:\h1\m1\file.b
c:\h1\m1\l1\file.x
c:\h1\m1\l1\file.y
c:\ann\h1\m1\file.a
c:\ann\h1\m1\file.b
c:\ann\file.a
c:\ann\file.b
c:\ann\m1\file.a
c:\ann\m1\file.b
c:\ann\file.a
c:\ann\file.b
dsmc res c:\h1\m1\ c:\ann\ -su=yes -preser=
complete
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
c:\ann\file.a
c:\ann\file.b
c:\ann\l1\file.x
c:\ann\l1\file.y
c:\ann\m1\file.a
c:\ann\m1\file.b
c:\ann\m1\l1\file.x
c:\ann\m1\l1\file.y
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
c:\ann\file.a
c:\ann\file.b
c:\ann\file.x
c:\ann\file.y