The query backupset command queries a backup set from a local file, tape device (if applicable) or the Tivoli® Storage Manager server.
This command displays the backup set name, generation date, retention (for a backup set on a Tivoli Storage Manager server), and user-supplied description.
This command is valid for all clients.
Tape support is only available on AIX®, Solaris, and HP-UX.
>>-Query BACKUPSET--+---------+--BACKUPSETName=-----------------> '-options-' >--+-backupsetname-+--+-----------------------+---------------->< +-localfilename-+ '-LOCation=--+-server-+-' '-tapedevice----' +-file---+ '-tape---'
When a backup set is created, the server assigns root as the owner of the backup set. When querying a backup set on the server, a non-root user does not see the backup set listed, even if they know the backup set name and use it in the query.
The value of backupsetname depends on the location of the backup set, and corresponds to one of these three choices:
Option | Where to use |
---|---|
description | Command line only. |
description | Command line only. |
scrolllines | Client options file (dsm.opt) or command line. |
scrolllines | Client user-options file (dsm.opt) or command line. |
scrollprompt | Client options file (dsm.opt) or command line. |
scrollprompt | Client user-options file (dsm.opt) or command line. |
Command: query backupset -backupsetname=*
Command: query backupset -backupsetname=monthly_financial_data.12345678
Command: dsmc query backupset -backupsetname="/home/budget/weekly_budget_data.ost" -loc=file
Command: query backupset -backupsetname=c:\budget\weekly_budget_data.ost loc=file
Command: dsmc query backupset -backupsetname=/dev/rmt0 -loc=tape
Command: dsmc query backupset -backupsetname=\\.\tape0 -loc=tape