User Tools

Site Tools


tsm:restore

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
tsm:restore [2021/01/01 21:25]
127.0.0.1 external edit
tsm:restore [2023/11/23 16:58] (current)
manu
Line 1: Line 1:
 ====== TSM:Restore using command line ====== ====== TSM:Restore using command line ======
  
 +FIXME To restore a full filespace, add a **/** at the end of command, ex
 +  dsmc restore /opt/ -subdir=yes -optfile=/​opt/​tivoli/​tsm/​client/​ba/​bin/​dsm.opt
 +  ​
 You can choose interactive mode, by using dsmc command, or directly start the full command: dsmc <TSM command>​. You can choose interactive mode, by using dsmc command, or directly start the full command: dsmc <TSM command>​.
 Here I just explain interactive mode: Here I just explain interactive mode:
-<code>  +<cli prompt='#'​>  
-[root@cl1hdbsat]/root# /​usr/​bin/​dsmc+[root@oracle01]/root# /​usr/​bin/​dsmc
 IBM Tivoli Storage Manager IBM Tivoli Storage Manager
 Command Line Backup-Archive Client Interface Command Line Backup-Archive Client Interface
Line 11: Line 14:
 (c) Copyright by IBM Corporation and other(s) 1990, 2010. All Rights Reserved. (c) Copyright by IBM Corporation and other(s) 1990, 2010. All Rights Reserved.
  
-Node Name: CL1HDBSAT+Node Name: ORACLE01
 Session established with server TSM1: AIX Session established with server TSM1: AIX
   Server Version 6, Release 2, Level 1.1   Server Version 6, Release 2, Level 1.1
   Server date/time: 06/​15/​11 ​  ​10:​53:​47 ​ Last access: 06/​15/​11 ​  ​10:​41:​09   Server date/time: 06/​15/​11 ​  ​10:​53:​47 ​ Last access: 06/​15/​11 ​  ​10:​41:​09
 +</​cli>​ 
 +<cli prompt='>'> ​
 tsm> ​ tsm> ​
-</code>+</cli>
  
 Search a file which was backup on TSM: Search a file which was backup on TSM:
   * Unordered List Itemfull path is required, is the file is not in your current directory (before starting dsmc)   * Unordered List Itemfull path is required, is the file is not in your current directory (before starting dsmc)
   * option -ina (inactive files), to list an old version of a file, or a deleted file. Active file is a file that was present on the server during last backup.   * option -ina (inactive files), to list an old version of a file, or a deleted file. Active file is a file that was present on the server during last backup.
-<code>+<cli prompt='>'​
 tsm> q ba smit.log tsm> q ba smit.log
            ​Size ​       Backup Date                Mgmt Class           A/I File            ​Size ​       Backup Date                Mgmt Class           A/I File
Line 37: Line 41:
      ​2,​199,​224 ​ B  05/​06/​11 ​  ​22:​16:​04 ​            ​DEFAULT ​             I  /​root/​smit.log      ​2,​199,​224 ​ B  05/​06/​11 ​  ​22:​16:​04 ​            ​DEFAULT ​             I  /​root/​smit.log
      ​2,​203,​791 ​ B  05/​23/​11 ​  ​22:​15:​53 ​            ​DEFAULT ​             I  /​root/​smit.log      ​2,​203,​791 ​ B  05/​23/​11 ​  ​22:​15:​53 ​            ​DEFAULT ​             I  /​root/​smit.log
-</code>+</cli>
  
 Restore a file which was backup on TSM: Restore a file which was backup on TSM:
Line 43: Line 47:
  
 //Usage: rest "<​file or directory>"​ [target_dir/​] [options]// //Usage: rest "<​file or directory>"​ [target_dir/​] [options]//
-<code>+<cli prompt='>'​
 tsm> dsmc rest "/​Users/​user1/​file?​.c"​ /​Users/​user2/​ -sub=yes tsm> dsmc rest "/​Users/​user1/​file?​.c"​ /​Users/​user2/​ -sub=yes
-</code>+</cli>
  
 Restore all files in the /home/mydir directory to their state as of 1:00 PM on August 17, 2002. Restore all files in the /home/mydir directory to their state as of 1:00 PM on August 17, 2002.
-<code>+<cli prompt='>'​
 tsm> restore -ina -pitd=8/​17/​2002 -pitt=13:​00:​00 /​home/​mydir/​ tsm> restore -ina -pitd=8/​17/​2002 -pitt=13:​00:​00 /​home/​mydir/​
-</code>+</cli>
  
 Restore in interactive mode, by choosing the version you want restore: Restore in interactive mode, by choosing the version you want restore:
-<code>+<cli prompt='>'​
 tsm> rest -pick -ina /​root/​smit.log /tmp/ tsm> rest -pick -ina /​root/​smit.log /tmp/
 TSM Scrollable PICK Window - Restore TSM Scrollable PICK Window - Restore
Line 62: Line 66:
 x    2. | 05/​23/​11 ​  ​22:​15:​53 ​      2.10 MB  I   /​root/​smit.log x    2. | 05/​23/​11 ​  ​22:​15:​53 ​      2.10 MB  I   /​root/​smit.log
      3. | 05/​06/​11 ​  ​22:​16:​04 ​      2.09 MB  I   /​root/​smit.log      3. | 05/​06/​11 ​  ​22:​16:​04 ​      2.09 MB  I   /​root/​smit.log
-        |  
-        |  
-        |  
-        |  
-        |  
-        |  
         0---------10--------20--------30--------40--------50--------60--------70--------80--------90--------100-------110-------120-         0---------10--------20--------30--------40--------50--------60--------70--------80--------90--------100-------110-------120-
 <​U>​=Up ​ <​D>​=Down ​ <​T>​=Top ​ <​B>​=Bottom ​ <​R#>​=Right ​ <​L#>​=Left <​U>​=Up ​ <​D>​=Down ​ <​T>​=Top ​ <​B>​=Bottom ​ <​R#>​=Right ​ <​L#>​=Left
Line 73: Line 71:
 <#:#​+>​=Select A Range <#:#​->​=Deselect A Range  <​O>​=Ok ​ <​C>​=Cancel <#:#​+>​=Select A Range <#:#​->​=Deselect A Range  <​O>​=Ok ​ <​C>​=Cancel
 pick> O pick> O
-</code>+</cli> 
 + 
 +Restore on a specific path, without full folder tree 
 +<cli prompt='#'>​  
 +[root@oracle01]/​root#​ /​usr/​bin/​dsmc restore -preservepath=none /​usr/​bxx/​log/​vm_list.txt /tmp/ 
 +Restoring ​             97 /​usr/​bga/​log/​vm_list.txt --> /​tmp/​vm_list.txt [Done]
  
 +</​cli>​
tsm/restore.1609532726.txt.gz · Last modified: 2021/01/01 21:25 by 127.0.0.1