I have a large filesystem - 500GB, with around 750,000 files which I need to restore using TSM.
There are about 15 subdirectories, one of which does not need to be restored.
The subdirectory to be excluded has about half the total number of files - 350,000, so it is very inefficient to simply restore the whole filesystem.
And because of the large number of files in the filesystem, it is painfully slow to restore each subdirectory one by one.
I just can't find any information about how to tell TSM to restore the whole filesystem but exclude one (or more) subdirectory.
Would be very grateful if anyone can come up with a solution to this.
You could try and write the names of the subdirectories you want to restore into a textfile and then use the -filelist option (assuming you use the command line):
You can run the below command from the TSM client (actual server where you have to restore)
dsmc restore /<your directory>/ -pick /<Desired location on local system>/
The above command will list all the sub directories with in your main directory, you can hand pick each sub-directory or directories by selecting from menu and restore them, you can specify the location to restore, if not remove the desired location, it will restore it to its original location.
Else, If you are restoring from GUI (which I don't like), you can restore as
dsmj --> GUI screen pops up --> restore --> expand the file level option --> select the directory and check mark the sub-directory you want to restore (you can check multiple sub-directories) --> restore
Both good options, I'll give them a try and see which works best for me. Thanks hergp and ibmtech.
ibmtech - I had tried -pick before, but I had found it listed all files in all subdirs, not just top-level, which was way too many files to go through. But I may have been using it differently from what you have suggested. I'll try it like that, because that would be pretty much exactly what I need.
Alan,
Suppose your main directory is '/export' and there are three sub directories (under /export) called 'mksysb' 'software' & 'res', apart from that there are certain files on '/export' directory, you will see them all.
dsmc restore /export/ -pick /<Desired location on local system>/
The above command will list all the three sub directories and files under /export, but it won't list anything under sub directories.
From here you can select each of sub directory individually and also each file.