Query-backup operation


The query-backup operation displays a list of backup versions of your files stored on the IBM Tivoli Storage Manager server.

The following table describes the elements for the query-backup operation:

 Adapter request elements for the query-backup operation

The following figure shows a sample adapter request for the query-backup operation:

Sample adapter request for the query-backup operation

<tsm-request>
 <operation-name>query-backup</operation-name>
 <command-request>
   <timeout-secs>120</timeout-secs>
   <command-options>
     <filesonly />
     <dateformat>DD-MM-YYYY</dateformat>
     <fromdate>24-09-2008</fromdate>
     <todate>07-10-2008</todate>
     <timeformat>HH:MM:SS</timeformat>
     <fromtime>09:10:00</fromtime>
     <totime>14:00:00</totime>
     <detail />
     <inactive />
   </command-options>
   <command-arguments>
     <filespec>C:\\new1.txt</filespec>
   </command-arguments>
 </command-request>
</tsm-request>


The following figure shows the adapter response for the sample request:

Sample adapter response for the query-backup operation

<tsm-response>
 <metadata>
   <status>success</status>
   <count>1</count>
 </metadata>
 <commands-output>
   <command-output>
     <metadata>
       <command>dsmc query backup -filesonly -detail -inactive -dateformat=2 -        fromdate=24-09-2008 -todate=07-10-2008 -timeformat=1 -fromtime=09:10:00         -totime=14:00:00 C:\\new1.txt</command>
       <line-count>13</line-count>
       <execution-milliseconds>1968</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 13:22:56</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 13:20:39  Last access: 07-        10-2008 12:34:56</line>
       <line index="10">           Size        Backup Date                Mgmt         Class           A/I File</line>
       <line index="11">           ----        -----------                ------        ----           --- ----</line>
       <line index="12">            92  B  07-10-2008 12:34:56             DEFAULT         A  \\d-13096\c$\new1.txt</line>
       <line index="13">Modified: 07-10-2008 12:00:47Created: 07-10-2008         12:00:29</line>
     </output>
   </command-output>
 </commands-output>
</tsm-response>

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*