Tivoli Header

Tivoli Storage Manager for Windows Backup-Archive Clients Installation and User's Guide

Query Archive

The query archive command displays a list of your archived files, the file size, archive date, file specification, expiration date, and file description.

Supported Clients

This command is valid for all Windows clients.

Syntax

>>-Query ARchive--+----------+--+- filespec----------------+---><
                  '- options-'  '- {filespacename}filespec-'
 
 

Parameters

options
You can use these command line options with the query archive command: description, dirsonly, filelist, filesonly, fromdate, fromnode, fromtime, todate, totime. For more information, see Chapter 10, "Using Options with Commands".

You can use these common options with the query archive command: scrolllines, scrollprompt, subdir. See Chapter 9, Setting Processing Options for more information..

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.
Note:
If you include filespacename, do not include a drive letter in the file specification. Note that drive label names are only used for removable media.

{filespacename}
Specifies the file space (enclosed in braces) on the server that contains the file you want to query. This is the name on the workstation drive from which the file was archived. The following example is valid for specifying a UNC name: {'\\machine\C$'}.

Use the filespacename if the name has changed or if you are querying files archived from another node with drive labels that are different from yours.

Note:
You must specify a mixed or lowercase NTFS filespacename enclosed in quotes and braces. For example, {"NTFSDrive"}. Single quotes or double quotes are valid in loop mode. For example: {"NTFSDrive"} and {'NTFSDrive'} are both valid. In batch mode, only single quotes are valid. The single quotes requirement is a restriction of the operating system.

Examples

Task
Display a list of all your archived files in the c:\proj directory.

Command: q ar c:\proj\*

Task
Display a list of archived files from your c: drive with the description "January Ledgers."

Command: query archive c:\ -su=y -descr="January Ledgers"

Task
Display a list of all your archived files in the c:\proj directory. Use the dateformat and timeformat options to reformat the dates and times.

Command: q ar -date=5 -time=4 c:\proj\*

Task
Display a list of archived files in the c:\proj directory containing a file extension of .dev. Use the dateformat and timeformat options.

Command: q ar -date=5 -time=4 c:\proj\*.dev

Task
Last week you changed the label of your c: drive to store and archived some files. Yesterday you changed the label to dev and archived more files. Display a list of all the files you archived in the c:\proj directory when the label was store.

Command: q ar {store}\proj\*

Task
Last week you archived files from a diskette labeled docs. Display a list of all the files you archived.

Command: q ar {docs}\*


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]