The delete backup command deletes files, images, and virtual machines that were backed up to Tivoli® Storage Manager server storage. Your administrator must give you authority to delete objects.
When you delete files, Tivoli Storage Manager takes all of the backed up files that meet the 'filespec' and 'deltype' options that are specified and deactivates them. The server also assigns a deactivation date of 'infinite-minus' so that the files are no longer available for restore and are purged, immediately on the subsequent run of file expiration. The file is not physically removed until the expiration process runs.
This command is valid for all clients.
>>-Delete BAckup-- --+---------+--------------------------------> '-options-' >--+-----------------------------------------------------+--+--------------------+--> | .-objtype=FILE--. | '-vmname--objtype=VM-' '-+-filespec----------------------+-+---------------+-' '-{--filespacename--}--filespec-' +-objtype=FILE--+ '-objtype=IMAGE-' .-deltype=ACTIVE-------. >--+----------------------+------------------------------------>< +-+----------------+---+ | '-deltype=ACTIVE-' | +-+------------------+-+ | '-deltype=INACTIVE-' | '-+-------------+------' '-deltype=ALL-'
When using -deltype=inactive or -deltype=active, use wildcard characters to specify a group of files or all files in a directory.
When using -deltype=all, specify a fully wildcarded directory.
When objtype=VM is specified, the deltype and filelist options cannot be used.
When objtype=VM, this command deletes only virtual machine backups that were created with any of the following modes: FULL, IFINCR, and IFFULL. This command does not delete backups that are created with MODE=INCR.
If the backup that is being deleted is a full VM backup (MODE=FULL or MODE=IFFULL), and if the server also has incremental backups that were created after the full backup, then the full backup, and all subsequent incremental backups, are deleted.
If you delete an active backup for a virtual machine, the most recent inactive copy becomes the active backup. If you specify the -pick or -inactive option, only the backup that you specify is deleted. If you select a backup that is created by MODE=IFINCR, only the selected incremental backup is deleted; other incremental backups for the virtual machine are not deleted.
To delete all versions of a file, first issue the delete backup command with -deltype=inactive, then issue the command again with -deltype=active.
Option | Where to use |
---|---|
description | Command line only. |
filelist | Command line only. |
fromdate | Command line, and in the GUI find function. |
fromtime | Command line, and in the GUI find function. |
noprompt | Command line only. |
pick | Command line only. |
pitdate | Command line, and in the GUI find function. |
pittime | Command line, and in the GUI find function. |
subdir | Client options file (dsm.opt) or command line. |
tapeprompt | Client options file (dsm.opt) or command line. |
timeformat | Client options file (dsm.opt) or command line. |
todate | Command line, and in the GUI find function. |
totime | Command line, and in the GUI find function. |
delete backup /data/plan/proj1/budget.jan
-deltype=inactive
delete backup /data/plan/proj1/budget.jan
-deltype=active
Command: delete backup "/data/plan/proj1/*.txt" -deltype=inactive -subdir=yes
Command: delete backup "/home/marymb/project/*" -pick
delete backup "/home/storman/myproject*"
-deltype=all
Command: delete backup {abc}\proj\*
Command: delete backup c:\plan\proj1\*.txt -deltype=inactive -subdir=yes
Command: delete backup c:\project\* -pick
Command: delete backup c:\user\myproject\* -deltype=all
Command: delete backup -objtype=vm orion.example.com
Command: delete backup -objtype=vm -inactive vm_test