IBM Tivoli Storage Manager, Version 7.1

Query Backup

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.

The command displays the following file information:
  • File specification
  • File size
  • Backup date
  • Whether the file is active or inactive
  • The management class that is assigned to the file. Only the first 10 characters of the management class name are displayed.
If you use the detail option with the query backup command, the client displays the following extra information:
  • Last modification date
  • AIX operating systems HP-UX operating systems Linux operating systems Oracle Solaris operating systems Mac OS X operating systems Last file attributes (inode) change date
  • Windows operating systems Creation date
  • Compression
  • Encryption type
  • Client-side data deduplication
AIX operating systems HP-UX operating systems Linux operating systems Oracle Solaris operating systems Mac OS X operating systems Windows operating systems

Supported Clients

This command is valid for all clients.

Syntax

Read syntax diagramSkip visual syntax diagram
>>-Query Backup--+------------+--------------------------------->
                 '- --options-'   

>--+- --filespec----------------------+--+- --filespec---+-----><
   '- --{--filespacename--}--filespec-'  '- --"filespec"-'   

Parameters

AIX operating systems HP-UX operating systems Linux operating systems Oracle Solaris operating systems Mac OS X operating systems filespec
Specifies the path and file name that you want to query. Use wildcard characters to specify a group of files or all the files in a directory. If you use wildcard characters, enclose the file specification in double quotation marks. Specify an asterisk (*) to display information about backup versions for all of your files in the current directory. Do not use wildcards characters when you query NAS file system images with -class=nas option setting.
Windows operating systems filespec
Specifies the path and file name that you want to query. Use wildcard characters to specify a group of files or all the files in a directory. Do not use wildcard characters when you query NAS file system images with -class=nas option setting.

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:

systemstate
Displays the list of backup versions of Windows system state.
Windows operating systems {filespacename}
Specifies the file space, enclosed in braces, on the server that contains the file you want to query. This is the drive label or UNC name on the workstation drive from which the file was backed up. The following example shows how to specify a UNC name: {'\\machine\C$'}.

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.

Table 1. Query Backup command: Related options
Option Where to use
backupsetname Command line only.
AIX operating systems HP-UX operating systems Linux operating systems Oracle Solaris operating systems Mac OS X operating systems Windows operating systems class Command line only.
Windows operating systems dateformat Client options file (dsm.opt) or command line.
AIX operating systems HP-UX operating systems Linux operating systems Oracle Solaris operating systems Mac OS X operating systems 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.
AIX operating systems HP-UX operating systems Linux operating systems Oracle Solaris operating systems Mac OS X operating systems Mac OS X operating systems fromowner Command line only.
fromtime Command line only.
inactive Command line only.
AIX operating systems HP-UX operating systems Linux operating systems Oracle Solaris operating systems Mac OS X operating systems nasnodename Client system options file (dsm.sys) or command line.
Windows operating systems nasnodename Client options file (dsm.opt) or command line.
Windows operating systems numberformat Client options file (dsm.opt) or command line.
AIX operating systems HP-UX operating systems Linux operating systems Oracle Solaris operating systems Mac OS X operating systems numberformat Client user-options file (dsm.opt) or command line.
pitdate Command line only.
pittime Command line only.
querysummary Command line only.
Windows operating systems scrolllines Client options file (dsm.opt) or command line.
AIX operating systems HP-UX operating systems Linux operating systems Oracle Solaris operating systems Mac OS X operating systems scrolllines Client user-options file (dsm.opt) or command line.
Windows operating systems scrollprompt Client options file (dsm.opt) or command line.
AIX operating systems HP-UX operating systems Linux operating systems Oracle Solaris operating systems Mac OS X operating systems scrollprompt Client user-options file (dsm.opt) or command line.
Windows operating systems subdir Client options file (dsm.opt) or command line.
AIX operating systems HP-UX operating systems Linux operating systems Oracle Solaris operating systems Mac OS X operating systems subdir Client user-options file (dsm.opt) or command line.
Windows operating systems timeformat Client options file (dsm.opt) or command line.
AIX operating systems HP-UX operating systems Linux operating systems Oracle Solaris operating systems Mac OS X operating systems timeformat Client user-options file (dsm.opt) or command line.
todate Command line only.
totime Command line only.

Examples

Windows operating systems dsmc query backup c:\* -subdir=yes -querysummary

Windows operating systems dsmc query archive c:\* -subdir=yes -querysummary

Windows operating systems Task
Query files from the abc file space proj directory.

dsmc query backup {"abc"}\proj\*.*

AIX operating systems HP-UX operating systems Linux operating systems Oracle Solaris operating systems Mac OS X operating systems Task
Display a list of all active and inactive backup versions of your files in the current directory.

dsmc query backup –inactive "*"

Windows operating systems Task
Display a list of all active and inactive backup versions that were backed up from the c:\proj directory.

dsmc q backup –ina c:\proj\*

AIX operating systems HP-UX operating systems Linux operating systems Oracle Solaris operating systems Mac OS X operating systems Task
Display a list of all your backups in the current directory. Use the detail option to display the last modification date and the last access date of each file.

dsmc q backup -detail "*"

Windows operating systems Task
Display a list of all your backups in the c:\dir1 directory. Use the detail option to display the last modification date and the creation date of each file.

dsmc q backup -detail c:\dir1\*

Windows operating systems Task
Display a list of all active and inactive backup versions that were backed up from the c:\proj directory. Use the dateformat and timeformat options to reformat the dates and times.

dsmc q b –date=5 –time=4 –ina c:\proj\*

AIX operating systems HP-UX operating systems Linux operating systems Oracle Solaris operating systems Mac OS X operating systems Task
Display a list of files that were backed up from the /home/proj directory with file names that begin with proj.

dsmc q b "/home/proj/proj*"

AIX operating systems HP-UX operating systems Linux operating systems Oracle Solaris operating systems Mac OS X operating systems Task
Display a list of active and inactive backup file versions in the /home file system.

dsmc q b –ina –su=yes /home/

Windows operating systems Task
Last week you backed up files from a diskette labeled docs. Display a list of those files.

dsmc q b {docs}\*

AIX operating systems HP-UX operating systems Linux operating systems Oracle Solaris operating systems Task
Query file system images from the nas2 NAS file server.

dsmc query backup -nasnodename=nas2 -class=nas

Windows operating systems Task
Query file system images from the nas2 NAS file server.

dsmc query backup -nasnodename=nas2 -class=nas

Windows operating systems Task
Display a list of all files from your c drive that are contained in the backup set weekly_accounting_data.32145678.

dsmc query backup c:\* -subdir=yes -backupsetname=weekly_accounting_data.32145678

Windows operating systems Task
Display information about all the active and inactive backup versions of the system state on the server.

dsmc query backup -ina systemstate



Feedback