Delete-backup operation


The delete-backup operation deletes the backup files from IBM Tivoli Storage Manager server storage. The administrator must give you the authority to delete backup files.

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

 Adapter request elements for the delete-backup operation

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

Sample adapter request for the delete-backup operation

<tsm-request>
 <operation-name>delete-backup</operation-name>
 <command-request>
   <timeout-secs>120</timeout-secs>
   <command-options>
     <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>
     <objtype>file</objtype>
     <deltype>active</deltype>
     <noprompt />
   </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 delete-backup operation

<tsm-response>
 <metadata>
   <status>success</status>
   <count>1</count>
 </metadata>
 <commands-output>
   <command-output>
     <metadata>
       <command>dsmc delete backup -dateformat=2 -fromdate=24-09-2008 -        todate=07-10-2008 -timeformat=1 -fromtime=09:10:00 -totime=14:00:00 -        objtype=file -deltype=active -noprompt C:\\new1.txt</command>
       <line-count>18</line-count>
       <execution-milliseconds>5203</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 14:27:42</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 14:25:14  Last access: 07-        10-2008 14:24:47</line>
       <line index="10">Backup Delete-&gt;              92 \\d-13096\c$\new1.txt         [Sent]      </line>
       <line index="11">Total number of objects deleted:          1</line>
       <line index="12">Total number of objects failed:           0</line>
       <line index="13">Total number of bytes transferred:       0  B</line>
       <line index="14">Data transfer time:                    0.00 sec</line>
       <line index="15">Network data transfer rate:            0.00 KB/sec</line>
       <line index="16">Aggregate data transfer rate:          0.00 KB/sec</line>
       <line index="17">Objects compressed by:                    0%</line>
       <line index="18">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*

TrueSight Orchestration Content 20.18.01