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
Element |
Definition |
Required |
---|---|---|
|
Specifies the duration, in seconds, before the session expires |
No |
|
Specifies the name of the operation : |
Yes |
|
Specifies the file name and path of the file that you want to query Note On UNIX, if the expression contains wildcards then the expression must be enclosed in quotation marks. |
No |
|
Specifies whether to display a list of NAS or client objects |
No |
|
Specifies the format to display dates
|
No |
|
Displays management class, file space, backup, and archive information depending on the command with which it is used |
No |
|
Specifies whether to process only directories |
No |
|
Specifies the file containing the list of files to be opened and processed Note The |
No |
|
Restricts query processing to files only |
No |
|
Specifies that one node performs commands for another node |
No |
|
Specifies the date from when you want to query for backups or archives during a restore, retrieve, or query operation |
No |
|
Specifies the time from when you want to search for backups or archives during a query operation |
No |
|
Specifies an end date to which you want to search for backups or archives during query operation |
No |
|
Specifies an end date and time until which you want to search for backups or archives during a query operation |
No |
|
Specifies whether you want to include subdirectories of the named directories for processing Note When you use the |
No |
|
Specifies whether to display both active and inactive objects |
No |
|
Specifies the date when you want to display or restore the latest version of your backups Note When the |
No |
|
Specifies the time when you want to display or restore the latest version of your backups Note You cannot use |
No |
|
Specifies the format to display numbers
|
No |
|
Specifies the format to display the system time
|
No |
|
Specifies the node name for the Network Attached Storage (NAS) file server when processing the NAS file systems Note The |
No |
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:47 Created: 07-10-2008 12:00:29</line>
</output>
</command-output>
</commands-output>
</tsm-response>
Comments
Log in or register to comment.