The subdir option specifies whether you want to include subdirectories of named directories for processing.
You can use the subdir option with the following commands:
//myfile.txt
/dir1/myfile.txt
/dir1/dir_a/myfile.txt
/dir1/dir_b/myfile.txt
Performing a selective backup of
that file, as follows, backs up all four instances of myfile.txt:dsmc sel /myfile.txt -subdir=yes
dsmc restore /myfile.txt -pick
This option is valid for all clients. The server can also define this option. The Tivoli Storage Manager client API does not support this option.
Place this option in the client options file (dsm.opt).
Place this option in the client user-options file (dsm.opt).
If you use the preservepath option in addition to subdir=yes, it can affect which subdirectories are processed.
If a subdirectory is a mounted file system, it is not processed even if you specify subdir=yes.
/Users/mike/dir1
/Users/mike/dir1/file1
/Users/mike/dir1/dir2
/Users/mike/dir1/dir2/file1
enter any of the following
commands: dsmc rest "/Users/van/dir1/*" /Users/mike/ -su=yes
dsmc rest "/Users/van/dir1/file*" /Users/mike/ -su=yes
dsmc rest "/Users/van/dir1/file1*" /Users/mike/ -su=yes
/path2/dir1
/path2/dir1/file1
/path2/dir1/dir2
/path2/dir1/dir2/file1
enter any of the following commands: dsmc rest "/path/dir1/*" /path2/ -su=yes
dsmc rest "/path/dir1/file*" /path2/ -su=yes
dsmc rest "/path/dir1/file1*" /path2/ -su=yes
\path2\dir1
\path2\dir1\file1
\path2\dir1\dir2
\path2\dir1\dir2\file1
enter any of the following commands: rest \path\dir1\* \path2\ -su=yes
rest \path\dir1\file* \path2\ -su=yes
rest \path\dir1\file1* \path2\ -su=yes
This option is valid on the initial command line and in interactive mode. If you use this option in interactive mode, it affects only the command with which it is specified. When that command completes, the value reverts to the value at the beginning of the interactive session. This is the value from the dsm.opt file unless overridden by the initial command line or by an option forced by the server.