TSM - How to restore files from nodeA to nodeB


On nodeB you will need to set the virtualnodename parameter so that nodeB "thinks" it is nodeA.

To do this on nodeB type the following.

dsmc -virtualnodename=nodeA

Substitute "nodeA" with the actual node name of the computer.

We will then be prompted for the TSM password for nodeA.

The output is shown below

 $ dsmc -virtualnodename=nodeA
IBM Tivoli Storage Manager
Command Line Backup/Archive Client Interface
  Client Version 5, Release 3, Level 4.0
  Client date/time: 09-04-2009 12:00:41
(c) Copyright by IBM Corporation and other(s) 1990, 2006. All Rights Reserved.

Node Name: nodeA
Please enter your user id "nodeA":

Please enter password for user id "nodeA":

Session established with server TSMserver: AIX-RS/6000
  Server Version 5, Release 4, Level 4.0
  Server date/time: 09-04-2009 12:00:41  Last access: 09-04-2009 11:46:37


The basic syntax for restoring your data is dsmc restore source-file destination-file. If the destination-file is omitted then TSM will restore the file(s) to their original location. Be aware that, as with backup, you cannot use wildcards in directory names. By default, TSM will restore the most current active version of a file.

To restore individual files, type something similar to the following.

tsm> rest /home/user/myfile /home/user

To restore multiple files and directories, type something similar to the following.

tsm> rest /home/user/projectA/* /home/user/projectA/ -su=yes

Note that in order to restore a full directory and the contents of all its sub-directories you need the -su=yes option.