Commvault

Data Recovery - CommCell® Console

Quick Links to Topics:


A sound data recovery strategy is essential for unplanned events like a system failure, accidental file deletion, system crashes, or larger scale disasters. Commvault software provides different recovery methods depending on the application or file system being protected. This flexibility allows the administrator to pick the optimal recovery method based on the situation to recover data in an efficient manner.

Recovery methods are divided into two main categories:

  • Indexed
  • Non-Indexed


Indexed-Based Recovery Methods

Restore Method
 

 Description

Find*

Provides the ability to enter search criteria for a file, such as myfile.txt or *.docx, file size, or access time. This option is useful if you know the specific file(s) that needs to be restored, but do not know the location, or when you have some information, such as a partial file name.

Browse

Provides the ability to browse for all protected data using the folder hierarchal structure (like Windows® Explorer). This method is useful when multiple files, folders or drives need to be restored.

Restore*

Provides the ability to enter a drive, folder path or file path such as 'F:\users\jdoe' that is required for restore. This option is useful when you know the specific location for data required for restore.

Full system restore

Provides the ability to restore an entire server in case of a full system crash. This method requires that all data on the server including 'system state' data has been protected. It also requires a base operating system and Commvault® file system agent to be installed prior to the restore. This method is useful when the operating system can be reinstalled or if base images are being deployed to servers.

1-Touch restore*

Provides the ability to restore an entire server in case of a full system crash. This method uses a boot image to boot the system with a temporary operating system. It then rebuilds the operating system through a full system restore. This method is useful when a system needs to be recovered with minimum administrator effort.

*Not available in the Commvault Command CenterTM

Non-Indexed-Based Recovery Method


Restore Method
 

 Description

Restore by Job*

Provides the ability to perform a non-indexed restore using one or more streams for one or more jobs. This method is useful in disaster recovery scenarios when the index directory is not available. An indexed-based restore would have to restore index files from media before the restore can begin. A non-indexed restore immediately begins restoring data.

* Not available in the Commvault Command CenterTM




 


Find

The Find operation is the preferred method for recovering files. Available at the backup set level, the Find operation scans the index database (in the case of V2 indexing), or multiple indexes (in the case of V1 indexing) within a specified range of backup time and searches for a specific filename or pattern (wildcards). You can also limit your scope of search to a specific folder or folder structure. Matching results are displayed within the specified time range. You can select to restore any, all, or specific version(s) of the files within the display.

If multiple versions are restored, each version has a sequential number appended to the filename beginning with 1 for the most recent version of the file.

With email, you can use the Find operation to search message metadata using the 'From,' 'To,' and 'Received' fields of the message.



To find data

1 - Right-click the backup set or subclient, select All Tasks and then select Find.

2 - Enter object name using wildcards if entire name or object type is not known.

3 - AND and OR operators can be used between two strings of characters.

4 - Click Add to include supplemental search criteria.

5 - Find results are displayed and objects can be selected for recovery.



Browse and Restore - Demo



Browse and Restore

A Browse and Restore operation allows the administrator to browse through the folder structure to select files and folders to restore. You can select multiple files and folders for recovery operations. If a parent object in the folder structure is selected, then all objects within the parent folder are automatically selected for restore.


When selecting a file that was modified multiple times during a cycle, the specific version of the file or all versions can be selected to be recovered.

Image and No-Image Browsing

The following features are used to browse and restore data:

  • Image Browsing
  • No-Image Browsing

Image Browse

Each time a backup operation is conducted an image file is generated, which represents a view of the folder structure at the time the backup occurred. By default, when a browse and restore operation is conducted, an 'image browse' method is used to present the folder structure as it existed based on the browse date and time. This is done by displaying the folder structure from the most recent image file prior to the point-in-time being browsed. So, if a browse is being conducted on Wednesday at 2:00 PM and the most recent backup was run on Tuesday at 10:00 PM, the image file from the 10:00 PM backup is used. This 'image browse' method produces a consistent structure of the data according to the browse time. This is important since folder structures may change from day-to-day during a cycle.

When restoring an entire folder structure, it is important that the structure represents a specific point when a backup was conducted—and not represent data for the entire cycle. This is best explained by using temporary files as an example. Temporary files and folders can be generated, deleted and regenerated multiple times during a cycle. Each time a backup is run, the file folder structure is different based on which files existed at the specific point-in-time. When a restore operation is run, you would not want every temporary file and folder to be restored, just a particular point-in-time or day.

Although the 'image browse' method is beneficial for restoring file and folder structures to a particular point-in-time, it may also result in deleted items not showing up when a Browse and Restore operation is conducted. For example, if on Wednesday at 2:00 PM a browse operation is run using the Tuesday 10:00 PM image file, and a file or folder was deleted on Tuesday at 2:00 PM, the deleted files will not appear in the browse results. This is because when the 10:00 PM image file was created, the deleted files were not present.

No-Image Browsing

The 'no-image browse' is used to retrieve data that may have been deleted at some unknown time. It browses all the data (including deleted items) for the selected backup set according to the browse time. It is also useful for retrieving a previous backup version and showing deleted files across cycles. 

There are two options to ensure deleted items are displayed during Browse and Restore operations:

  • Select the Show Deleted Items check box - This runs a 'no-image browse.' In this case, the image files are bypassed, and the browse operation returns results from the index directory, which shows all items backed up from the point the full was run. This method is useful when recovering user data that has been deleted but may not be a good choice when restoring an entire folder structure, especially if the folder structure was modified during the cycle.
  • Specify date and time to browse - This runs 'image browse.' If you know when the data was deleted, specify that date and time in the Browse and Restore options. So, if data was deleted at 2:00 PM on Tuesday, and you specify Tuesday as the browse date, then the most recent image file prior to the point the browse is being conducted would be Monday at 10:00 PM. Since the data was deleted on Tuesday it would be present in the image file on Monday night and will show up in the browse results.




To browse data

1 - Right-click the backup set or subclient | All Tasks | Browse and Restore.

2 - Browse Latest Backup to restore data to the point-in-time of most recent backup.

3 - Browse absolute time - best used when it is certain when data was deleted.

4 - Browse a date and time range to recover data from a previous point-in-time.

5 - Browse relative time - best used when recovering older  deleted data if uncertain when it was deleted.

6 - When browsing for deleted items check ‘show deleted items’ in the Advanced tab.



Pie Chart Browse View

The pie chart view in the browse window provides insight into what data is stored on a client and provides a visual method for browsing data. It can be useful when looking for a certain type of file.

To display the pie chart, launch a traditional Browse and Restore, then click the pie chart icon in the upper-right corner.




To browse data using the pie chart

1 - In the browse window, click the chart button.

2 - The pie chart is displayed in the bottom window.



3 - Click the pie chart to view the drive folder structure.

4 - To move through folders, click the section in the pie chart that corresponds to the folder listed on the right.

5 - When the section is selected in the pie chart the browse list will reflect what is selected.


Restore Options and Tasks

Whether the Browse and Restore or the Find option was used to locate data, the next step in the restore process is to recover the data. There are several options available for restoring data depending on the agent type and the operating system.

Key points when restoring data:

  • Data can be restored in-place, which is on the same system, in the same location.
  • Data can be restored out-of-place, on the same server in an alternate location or on a different server.
  • A file name suffix can be appended to restored file names for ease of identification.
  • Files can be restored in a remote location by providing a UNC path and the user who has access to the share.
  • The List Media option is used to ensure the required media are in the library or if it must be recalled.

Basic Recovery Options

Select data to restore | Click Recover All Selected | General Tab






To recover data

1 - Use Browse or Find to locate and select the data.

2 - Right-click a file and choose View All Version to display and select the versions to restore.

3 - Click List Media and Size to ensure the media are available in the library.

4 - Click Recover All Selected to open the recovery options screen.



7 - Define if data, ACLs or both are restored.

8 - Select the target server to restore the data.

9 - Check to do an in-place restore or uncheck to do an out-of-place restore.

10 - If an out-of-place restore is selected, browse to provide the new location.


Multi-Stream Restore

Use Browse or Find to select objects to restore | Click Recover All Selected | General tab

Commvault® Version 11 Service Pack 6 introduces the ability to uses multiple streams during an index-based restore such as Browse and Restore or Find. By default, the system traditionally uses one stream, but this number can be increased by using the 'Number of streams' option in the Restore Options General tab. Multi-stream restore is only supported for data using V2 indexing.



To execute a multi-stream restore

1 - Using Browse or Find, select content to restore.

2 - Click Recover All Selected.

3 - Define the number of streams to use for the restore.



Copy Precedence

Click Browse or Find | Choose Advanced Options tab

Each storage policy copy within a storage policy has a copy precedence number assigned to it. By default, the primary copy has a precedence number of one. The next secondary copy created will have a precedence number increased by one in the order in which they are created.

When restoring data using Commvault® software, by default, it restores the data from the lowest copy precedence number where the data is available. For example, data is stored on disks for 30 days and copied on tapes for 90 days. If you browse for data that is earlier than 30 days, there is no need to specify the disk copy. The system automatically goes to the disk copy since the primary copy has a precedence number one (1). If you browse for data older than 30 days, the system automatically goes to the tape copy, which has a precedence number two (2).

If it is required to restore data from a higher precedence number (even if the data is available from a lower precedence copy), you can override the default behavior by specifying a precedence number in the Browse and Restore or Find operations' Advanced Options tab.


Tip: Validate Restores from a Tape Copy
Scenario: You are backing up data to disks and copying the data to a secondary tape copy to send offsite daily. Your manager is asking you to prove that you can restore data from tapes before sending it to the offsite location.

Solution: To restore data from tapes and avoid the system automatically restoring from disks, specify the tape copy precedence number during the restore.




To choose a copy precedence during restore

1 - Either click Find or Browse and Restore to select the data.

2 - Check box to overwrite the default precedence number.

3 - Define the desired precedence number.



To access the Storage Policy options

1 - Expand Storage Policies | Right-click the storage policy | Properties.

2 - Displays the order in which copies will be used to restore data.

3 - The order can be modified by using the arrows.



Append a Suffix to Restored Files

Select data to restore | Click Recover All Selected | Advanced button | Map tab

During a restore it is possible to append a suffix to restored files. It is useful if you wish to restore the files in the same location of the production files without overwriting them. The suffix is appended at the end of the file name, right before the file extension.




To recover data and append a suffix

1 - Use Browse or Find to locate and select the data.

2 - Click Recover All Selected to open the recovery options screen.

3 - Define the restore options and click Advanced to specify the suffix.

4 - Define the desired suffix.

5 - File is restored with the suffix.



Apply Filters to a Restore

Select data to restore | Click Recover All Selected | Advanced button | Paths/Filters tab

In some cases, it is useful to apply filters during a restore. For instance, if you are restoring folders that belong to several users, but would like to filter out AVIs, simply apply a filter to the restore. Filters are defined in the Paths/Filters tab of the Restore Advanced options.




To apply filters to a restore

1 - Use Browse or Find to locate and select the data to restore.

2 - Click Recover All Selected to open the recovery options screen.

3 - Define the restore options and click Advanced  to specify a filter.

4 - Click Add and define filters.

5 - Filters are added to the restore job.



Run Scripts Before and/or After the Restore

Select data to restore | Click Recover All Selected | Advanced button | Pre/Post tab

During a restore it can be helpful to run a script either before or after the restore completes. For instance, if you want to launch an application or start a Windows® service, Commvault® software allows the script to be executed from the Pre/Post tab of the restore job's Advanced Options.
To use scripts before and/or after restoring, copy the scripts onto the client server.




To run a script before and/or after a restore

1 - Use Browse or Find to locate and select the data to restore.

2 - Click Recover All Selected to open the recovery options screen.

3 - Define the restore options and click Advanced to define the script.

4 - Define pre and/or post recovery scripts.



Additional Recovery Methods

Restore by Job

The Restore by jobs operation is a 'non-indexed restore' that uses multiple concurrent streams during the restore operation. Unlike a traditional Browse and Recovery operation – which requires index files to be available in the index directory and uses a single stream during the restore operation, the 'Restore by Jobs' provides a faster recovery in DR situations when the production index directory location is not available. Since this operation does not require indexes and it is a chunk-based restore that allows multiple streams to run simultaneously, restore operations run immediately and provides a faster restore speed.

There is a negative aspect of the Restore by Jobs operation. The single pass restore method used with indexed-based recoveries (where only the proper version of an object is restored based on the point of browse) is not used. This means that in order to bring a machine back to its last state, the last full backup job would need to be recovered first followed by each subsequent incremental job ending with the most recent.
The Restore by Job option restores an entire job and therefore does not offer any restore granularity.




To restore an entire job

1 - Right-click the backup set | All Tasks | Restore by Jobs.

2 - Select backup types.

3 - Provide a point-in-time.

4 - Click OK.



5 - Right-click the job to recover and select Restore Selected Jobs.

6 - Select recovery options and click OK to launch the restore job.


Full System Restore

The Full System Restore or 'full agent restore' operation is an indexed-based restore where the entire backup set is selected when browsing for data. The backup set selection includes the entire contents of the file system backup, including configuration information such as system state. This is a restore type that can be used in case of a full system crash.

For this to work, several steps must be accomplished:

  1. Build a new machine with similar hardware and same mass storage configuration.
  2. Install a working Operating System of the same level as the crashed client (i.e. Windows 2008R2 SP2).
  3. Install the client agent on the target system, but configured using the crashed system client name.
  4. A full backup of the system including the Windows® system state must be available. The system state backup should not have critical components filtered. Here are the required critical system state components:
    • Registry
    • System Protected Files
    • Active Directory
    • Cluster DB
    • Sysvol (For 2000 or 2003 domain controllers level)
    • DFSR (Windows 2008 Domain controller level)
  5. Browse at the backup set and select the entire backup set.
  6. Perform the restore.
  7. Reboot.




To execute a full system recovery

1 - Right-click the backup set | All Tasks | Browse and Restore.

2 - Either choose the latest backup or provide a point-in-time.

3 - Click View Content.



4 - Ensure to select the entire backup set including the system state.

5 - Click Recover All Selected.



6 - Set to overwrite existing files, or only if newer.

7 - If it is a domain controller, select the restore mode for SYSVOL.

8 - If it is a clustered server, select the restore mode.

9 - Click Advanced to configure hardware restore option.

10 - If hardware is different, select Cross Hardware Restore.


Restore Validation

Despite the high availability and redundancy of IT infrastructures, in some cases, it may be required to validate if data is restorable. It can be an easy task if the available storage can accommodate a test restore. But it quickly becomes a challenge when available space is limited.

The 'Validate Only' restore option, available for several agents such as file system and SQL, helps to address that challenge by validating the restore without actually writing any data on the client. The restore process proceeds as usual; reading the data from the MediaAgent library and sending the data to the client. When the client receives the data, it validates if the received data size is the same as the size in the headers. The client then discards the data without writing it anywhere. The job details provide metrics for the restore, making the 'Validate Only' option a great tool for testing network performance. 




To run a restore validation job

1 - Click the Backup Set | Right-click the subclient | Browse and Restore.

2 - Select the job to recover and click to view the content.



3 - Select the data to recover.

4 - Click to open the recovery options window.



5 - Click to open the Advanced options window.

6 - Check the ‘Validate Only’ option.

7 - Click to launch the restore job.


8 - Once the job completes, double-click to view the detailed information.

9 - Performance metrics of the job are displayed in the window.


Copyright © 2021 Commvault | All Rights Reserved.