Restore operation
The restore operation obtains copies of the backup versions of your files from a server, or from a backupset when a backupset is specified. It restores files to the directory from which you take backup, or to the specified directory.
The following table describes the elements for the restore operation:
Adapter request elements for the restore operation
The following figure shows a sample adapter request for the restore operation:
Sample adapter request for the restore operation
<tsm-request>
<operation-name>restore</operation-name>
<command-request>
<timeout-secs>120</timeout-secs>
<command-options>
<dateformat>DD-MM-YYYY</dateformat>
<timeformat>HH,MM,SS</timeformat>
<fromdate>30-09-2008</fromdate>
<fromtime>12,00,00</fromtime>
<todate>07-10-2008</todate>
<totime>16,00,00</totime>
<preservepath>complete</preservepath>
<replace>yes</replace>
<skipntpermissions>yes</skipntpermissions>
<latest />
</command-options>
<command-arguments>
<source-filespec>C:\new2.txt</source-filespec>
<dest-filespec>C:\new1.txt</dest-filespec>
</command-arguments>
</command-request>
</tsm-request>
<operation-name>restore</operation-name>
<command-request>
<timeout-secs>120</timeout-secs>
<command-options>
<dateformat>DD-MM-YYYY</dateformat>
<timeformat>HH,MM,SS</timeformat>
<fromdate>30-09-2008</fromdate>
<fromtime>12,00,00</fromtime>
<todate>07-10-2008</todate>
<totime>16,00,00</totime>
<preservepath>complete</preservepath>
<replace>yes</replace>
<skipntpermissions>yes</skipntpermissions>
<latest />
</command-options>
<command-arguments>
<source-filespec>C:\new2.txt</source-filespec>
<dest-filespec>C:\new1.txt</dest-filespec>
</command-arguments>
</command-request>
</tsm-request>
The following figure shows the adapter response for the sample request:
Sample adapter response for the restore operation
<tsm-response>
<metadata>
<status>success</status>
<count>1</count>
</metadata>
<commands-output>
<command-output>
<metadata>
<command>dsmc restore -dateformat=2 -timeformat=2 -fromdate=30-09-2008 - fromtime=12,00,00 -todate=07-10-2008 -totime=16,00,00 - preservepath=complete -replace=yes -skipntpermissions=yes -latest C:\new2.txt C:\new1.txt</command>
<line-count>19</line-count>
<execution-milliseconds>5266</execution-milliseconds>
<exit-code>0</exit-code>
<status>success</status>
</metadata>
<output>
<line index="1">IBM Tivoli Storage Manager</line>
<line index="2">Command Line Backup/Archive Client Interface</line>
<line index="3"> Client Version 5, Release 5, Level 0.0 </line>
<line index="4"> Client date/time: 07-10-2008 15,18,35</line>
<line index="5">(c) Copyright by IBM Corporation and other(s) 1990, 2007. All Rights Reserved.</line>
<line index="6">Node Name: D-13096</line>
<line index="7">Session established with server SERVER1: Linux/i386</line>
<line index="8"> Server Version 5, Release 5, Level 0.0</line>
<line index="9"> Server date/time: 07-10-2008 15,16,06 Last access: 07- 10-2008 15,15,39</line>
<line index="10">Restore function invoked.</line>
<line index="11">Restoring 103 \\d-13096\c$\new2.txt --> \\d-13096\c$\new1.txt [Done] </line>
<line index="12">Restore processing finished.</line>
<line index="13">Total number of objects restored: 1</line>
<line index="14">Total number of objects failed: 0</line>
<line index="15">Total number of bytes transferred: 127 B</line>
<line index="16">Data transfer time: 0.00 sec</line>
<line index="17">Network data transfer rate: 0.00 KB/sec</line>
<line index="18">Aggregate data transfer rate: 0.03 KB/sec</line>
<line index="19">Elapsed processing time: 00,00,03</line>
</output>
</command-output>
</commands-output>
</tsm-response>
<metadata>
<status>success</status>
<count>1</count>
</metadata>
<commands-output>
<command-output>
<metadata>
<command>dsmc restore -dateformat=2 -timeformat=2 -fromdate=30-09-2008 - fromtime=12,00,00 -todate=07-10-2008 -totime=16,00,00 - preservepath=complete -replace=yes -skipntpermissions=yes -latest C:\new2.txt C:\new1.txt</command>
<line-count>19</line-count>
<execution-milliseconds>5266</execution-milliseconds>
<exit-code>0</exit-code>
<status>success</status>
</metadata>
<output>
<line index="1">IBM Tivoli Storage Manager</line>
<line index="2">Command Line Backup/Archive Client Interface</line>
<line index="3"> Client Version 5, Release 5, Level 0.0 </line>
<line index="4"> Client date/time: 07-10-2008 15,18,35</line>
<line index="5">(c) Copyright by IBM Corporation and other(s) 1990, 2007. All Rights Reserved.</line>
<line index="6">Node Name: D-13096</line>
<line index="7">Session established with server SERVER1: Linux/i386</line>
<line index="8"> Server Version 5, Release 5, Level 0.0</line>
<line index="9"> Server date/time: 07-10-2008 15,16,06 Last access: 07- 10-2008 15,15,39</line>
<line index="10">Restore function invoked.</line>
<line index="11">Restoring 103 \\d-13096\c$\new2.txt --> \\d-13096\c$\new1.txt [Done] </line>
<line index="12">Restore processing finished.</line>
<line index="13">Total number of objects restored: 1</line>
<line index="14">Total number of objects failed: 0</line>
<line index="15">Total number of bytes transferred: 127 B</line>
<line index="16">Data transfer time: 0.00 sec</line>
<line index="17">Network data transfer rate: 0.00 KB/sec</line>
<line index="18">Aggregate data transfer rate: 0.03 KB/sec</line>
<line index="19">Elapsed processing time: 00,00,03</line>
</output>
</command-output>
</commands-output>
</tsm-response>
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*