List Media (Media Prediction) - Command Line

Table of Contents

List Media for BackupSet

Media for particular directory or files belonging to individual backupsets can be predicted  using the following command line inputs:

  1. Download the input_backupset.xml file and save it on the computer from where the command will be executed.

    Modify the xml template as per your setup.

  2. Execute the following command from the /Base folder after substituting the parameters values in the input file.

    Make sure to provide the name and path of the output xml file in which you want to retrieve your browse results.

    qlist backupfiles -af input_backupset.xml -dpath output_template.xml

  3. Verify the results in the output_backupset_template.xml.

List Media for Subclient

Media for particular directory or files belonging to individual subclients can be predicted using the following command line inputs:

  1. Download the input_subclient.xml file and save it on the computer from where the command will be executed.

    Modify the xml template as per your setup.

  2. Execute the following command from the /Base folder after substituting the parameters values in the input file.

    Make sure to provide the name and path of the output xml file in which you want to retrieve your browse results.

    qlist backupfiles -af input_subclient.xml -dpath output_template.xml

  3. Verify the results in the output_subclient_template.xml.

Supported Parameters and Possible Values

The following table displays the various command line parameters, their values and options that are used in the above XML query:

Parameter Values Description

opType

The following values can be used to define the given parameter. For the above example Browse has been selected.
  • Browse
  • Find
  • Versions
  • IndexPrediction
This parameter is used to define the type of operation that you would perform during the XML request.

Entity

The following values need to be defined for this parameter:
  • appName="Windows File System"
  • backupsetName="backupset1"
  • clientName="client1"
  • subclientName="subclient1"
appName: This the type of Agent on which the Browse operation is performed and the value can be obtained form APP_iDAtype table.

backupsetName: Name of the backupset on which the browse operation will be performed. If no name is specified, defaultBackupSet s used.

clientName: Name of the client to which the backupset belongs.

subclientName: Subclient that was backed up. The browse operation will yield results on this subclient.

paths

  The path to the actual folder level on which the browse operation will be performed.

For example:

<paths path="E:\"/>

You must provide the exact path to the folder which contains the backed up files.

timeRange

The following values can be used to define the given parameter:
  • Latest
  • Point in time
  • TimeRange
The above example uses TimeRange. The Time range can be specified in the below formats:

<timeRange fromTime="Dec 21, 2010" toTime="Dec 31, 2010"/>

<timeRange fromTime="2012-06-09 10:00:00" toTime=": 2012/10/02 14:06:29 "/>

Sample Output

Given below is the sample output of the List Media operation using Command Line.

The resultant xml contains the following information about the predicted media:

Parameter Description

mediaId

Volume information of the media stored

library

Media/library of the path requested

barcode

Path of the library

storagePolicyName

Storage policy of the storage media

aggrResultSet

Size of the subclient path/backupset