Loading...

Finding Backed Up Data for Windows File System from the Command Line Interface

You can find backed up data using the Command Line XML and qoperation find command.

Command Line XML

You can use command line XML files to perform find operations.

Procedure

  1. Download the input_find.xml file and save it on the computer from where the command will be run.
  2. Modify the xml template as per your setup.

    The following example lists the mandatory elements and sample values.

    <databrowse_BrowseRequest opType="Find">
    <session/> <entity commCellId="2" clientName="imindexing33" subclientName="SC2"
    backupsetName="commandline" appName="Windows File System" _type_="0"/>
    <paths path="\**\*"/> <queries queryId="0" type="DATA">
    </queries>
    <timeRange fromTime="Dec 31, 1969" toTime="Nov 12, 2013"/>
    <options restoreIndex="true"/> <mode mode="2"/>
    <paging skipNode="0" pageSize="1000" firstNode="0"/>
    <ma clientName="indexingstorage"/>
    <user userName="admin"/>
    <advOptions copyPrecedence="0"/>
    </databrowse_BrowseRequest>

  3. Change the XML element values.
  4. Execute the following command from the <Software_Installation_Directory>/Base folder.

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

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

  5. Verify the results in the output_template.xml.

qoperation find

Description

This command performs a wildcard search for a specific file in the backed up content. This command also allows you to search data from multiple indexing cycles. For example, in the case where the follow data was backed up:

  • *.txt files in the first cycle
  • *.pdf files in the second cycle
  • *.doc files in the third cycle

Even when the backup cycle is in a time frame beyond the third cycle, you can search the backed up data from all the three cycles without any additional input parameters.

Usage

qoperation find -af argsfile [-rf resultfile][-tf tokenfile] [-tk token] [-h]

Options

-af

Reads arguments from an input file

-rf

Saves results to a file

-tf

Reads token from a file

-tk

Token string

-h

Displays help

Argument File

server

CommServe host name

user

User name (prompted if not specified)

password

Password (prompted if not specified)

sourceclient

Name of the client computer where you want to perform search operation.

dataagent

Agent type that is installed on source client computer (see Argument Values - Agent Types)

backupset

Backup set name

sourcepaths

File/Directory to be restored (using wildcard characters)

options

Restore options (see Argument Values - Restore Options)

browsefrom

Start date/time to be considered for search operation. Format: mm/dd/yyyy hh:mm[:ss] or yyyy/mm/dd hh:mm[:ss].

browseto

End data/time to be considered for search operation. Format: mm/dd/yyyy hh:mm[:ss] or yyyy/mm/dd hh:mm[:ss]

Diagnostics

Possible exit status values are:

0 - Successful completion.

1 - CLI usage failures, due to the use of an unsupported option or missing argument.

2 - Any other failure.

Example

Perform a wild card search operation on backed up content using find command.

  1. Create an input parameter file with the required arguments and values.

    For example, a file called sample.ini.

    [sourceclient]
    silver

    [dataagent]
    Q_MSEXCH_DB

    [backupset]
    defaultBackupSet

    [sourcepaths]
    C:\*.xml

    [browsefrom]
    2011/8/22 00:25:00

    [browseto]
    2011/8/22 06:28:00

    [options]
    QR_BROWSE
    QR_NORECURSE
    QR_NOIMAGE
    QR_WILDCARD

  2. Run the qoperation from the command prompt.

    C:\Commvault\Base>qoperation find -af "SAMPLEFILE.INI" -rf C:\out_find03.txt
    1: Wed Aug 10 10:44:47 2011 1312987487 Unknown 237 \C:\1.xml

Last modified: 1/11/2018 6:07:18 PM