The query backup command displays a list of backup versions of your files that are stored on the Tivoli® Storage Manager, or that are inside a backup set from the server when the backupsetname option is specified.
This command is valid for all clients.
>>-Query Backup--+------------+---------------------------------> '- --options-' >--+- --filespec----------------------+--+- --filespec---+----->< '- --{--filespacename--}--filespec-' '- --"filespec"-'
If you include filespacename, do not include a drive letter in the file specification. Drive label names are only used for removable media.
You can also use the following value for filespec:
Use the filespacename if the name has changed, or if you want to query files backed up from another node with drive label names that are different from yours.
You must specify a mixed or lowercase NTFS or ReFS file space name that is enclosed in quotation marks and braces. For example, {"NTFSDrive"}. Single quotation marks or double quotation marks are valid in loop mode. For example: {"NTFSDrive"} and {'NTFSDrive'} are both valid. In batch mode, only single quotation marks are valid.
Option | Where to use |
---|---|
backupsetname | Command line only. |
class | Command line only. |
dateformat | Client options file (dsm.opt) or command line. |
dateformat | Client system options file (dsm.sys) or command line. |
detail | Command line only. |
dirsonly | Command line only. |
filelist | Command line only. |
filesonly | Command line only. |
fromdate | Command line only. |
fromowner | Command line only. |
fromowner | Command line only. |
fromtime | Command line only. |
inactive | Command line only. |
nasnodename | Client system options file (dsm.sys) or command line. |
nasnodename | Client options file (dsm.opt) or command line. |
numberformat | Client options file (dsm.opt) or command line. |
numberformat | Client user-options file (dsm.opt) or command line. |
pitdate | Command line only. |
pittime | Command line only. |
querysummary | 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. |
subdir | Client options file (dsm.opt) or command line. |
subdir | Client user-options file (dsm.opt) or command line. |
timeformat | Client options file (dsm.opt) or command line. |
timeformat | Client user-options file (dsm.opt) or command line. |
todate | Command line only. |
totime | Command line only. |
dsmc query backup c:\* -subdir=yes -querysummary
dsmc query archive c:\* -subdir=yes -querysummary
dsmc query backup {"abc"}\proj\*.*
dsmc query backup –inactive "*"
dsmc q backup –ina c:\proj\*
dsmc q backup -detail "*"
dsmc q backup -detail c:\dir1\*
dsmc q b –date=5 –time=4 –ina c:\proj\*
dsmc q b "/home/proj/proj*"
dsmc q b –ina –su=yes /home/
dsmc q b {docs}\*
dsmc query backup -nasnodename=nas2 -class=nas
dsmc query backup -nasnodename=nas2 -class=nas
dsmc query backup c:\* -subdir=yes -backupsetname=weekly_accounting_data.32145678
dsmc query backup -ina systemstate