TSM restore - how to exclude one subdirectory


 
Thread Tools Search this Thread
Operating Systems AIX TSM restore - how to exclude one subdirectory
# 1  
Old 10-13-2013
[Solved] TSM restore - how to exclude one subdirectory

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.

Thanks, Alan.
# 2  
Old 10-14-2013
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):
Code:
dsmc restore -filelist=filenames.txt /your/base/dir/

It has been quite some time since I used TSM, so I am not sure, if this option works in your case, but it is worth a try.
# 3  
Old 10-14-2013
You can run the below command from the TSM client (actual server where you have to restore)
Code:
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
Code:
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

# 4  
Old 10-16-2013
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.

Cheers, Alan.
# 5  
Old 10-17-2013
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.

Code:
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.

Hope this helps.
# 6  
Old 10-21-2013
Thanks ibmtech, I gave that a try on a smaller restore and it works exactly as you say. Next time we do the big restore, I'll use that. Cheers Smilie.

Moderator's Comments:
Mod Comment edit by bakunin: very good to hear that. Changed the thread's title to "Solved"

Last edited by bakunin; 10-22-2013 at 04:38 AM..
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Tsm commands

hi all, In my shell script, they have used the bplist commands where backup team were using the bplist utility and right now they have changed the utility to TSM. Could you please help me out the revelant commands for TSM utility for the backup. Let me know if you have any idea on tis. (1 Reply)
Discussion started by: ramkumar15
1 Replies

2. Linux

Tsm

my backup team was using the bpclient utility which they are migrated to TSM client. I need to change the script running from bpclient to TSM . if anyone give some inputs that would be great. (2 Replies)
Discussion started by: ramkumar15
2 Replies

3. Red Hat

TSM service not found

Hello, I have some trouble checking the TSM ( Tivoli storage Mgr )service status in Linux box when i am doing service tsm status -bash: service command not found Above command is working fine in all other linux box ( Any idea how to look into this to resolve this, i am clueless from... (2 Replies)
Discussion started by: saurabh84g
2 Replies

4. Ubuntu

[Solved] Using Find with an exclude/exclude file

I am familiar with using tar and exclude/include files: tar zcf backup.dirs.tgz --files-from=include.mydirs --exclude-from=exclude.mydirs --no-recursion but was wondering if I could use find in the same way. I know that you can just specify the directories to exclude but my list is... (2 Replies)
Discussion started by: metallica1973
2 Replies

5. AIX

TSM capacity

Dears, The TSM storage that we have is already configured to backup some Application,directories & logs or let's say backup different path from 15 servers, I want to add more Items to be backuped by this storage, how to be confirmed if that possible or not? I mean how do we know the capacity of... (7 Replies)
Discussion started by: arm
7 Replies

6. AIX

mksysb restore - Wrong OS level for restore

Hi all, I am still working on my mksysb restore. My latest issue is during an alt_disk_install from tape I got the following error after all the data had been restored. 0505-143 alt_disk_install: Unable to match mksysb level 5.2.0 with any available boot images. Please correct this... (0 Replies)
Discussion started by: pobman
0 Replies

7. Linux

tsm client (basic question)

Hello, i was trying to install tsm client on a linux box(i386) I get asked for a lot of dependent filesets. I dont have the cd? how can i get these?? is there a way to copy these from a server which has it? and how do i check if a server has it? rpm -qa|grep fileset?? pls advice # rpm -ivh... (4 Replies)
Discussion started by: karthikosu
4 Replies

8. AIX

Backup solutions / TSM alternative?

Hey all, I've just about had it with Tivoli Storage Manager. I won't go into the what's and why's. Do any of you have suggestions for an alternative? We have around 70 linux clients and 10 AIX lpars. We mostly do incremental filesystem backups each night and have a 3494 tape library with 3... (2 Replies)
Discussion started by: cruiser
2 Replies
Login or Register to Ask a Question