Verifying Image and Backup Files from the Command Line


- Overview

- Verifying Images with the Command Line


Overview

This article explains how to verify Macrium Reflect image and backup files using the standalone command line verification tool 'mrverify.exe'.  mrVerify. exe supports individual file verification as well as folder and sub-folder file search and verification.

To verify backups using the Macrium Reflect user interface, see:  Verifying image and backup files

mrverify.exe is installed with Macrium Reflect and can be found at the following path:

C:\Program Files\Macrium\Reflect\MRVerify.exe

Please note that mrverify.exe must be run from an Administrator command prompt. For instructions on how to do this, please see here.


Verifying Images with the Command Line

The following command line switches are supported:

mrverify.exe "full path to image file or folder" -p[--password] "password" -r[--recurse] -x[--fix] -l[--logfile] "logfile name"

The file name, or path with a wildcard, can be used. e,g:

d:\backups\*

or

d:\backups\1FF33614674A6438-00-00.mrimg
Switch Description
-h OR --help The help output
-l OR --logfile Full path to output log file. This file will be created for each run and contains the file name and verification status, 'success' or 'fail'.
-p OR --password The optional password that was used to protect and/or encrypt the backup
-r OR --recurse Scan all sub-folders if a folder is specified. The default is not to recurse.
-s OR --set Verify all files in the set. Use to verify individual files to ensure they can be restored. When verifying all files in a folder, this isn't necessary. The default is not to verify the entire set.
-x OR --fix Attempt to fix failed blocks if the current live file system contains the original data.

Examples:

mrverify.exe "d:\backups\1FF33614674A6438-00-00.mrimg"mrverify.exe "d:\backups\1FF33614674A6438-00-00.mrimg" --set --password "mypassword" -l "c:\verifylog.txt"
mrverify.exe "d:\backups\1FF33614674A6438-00-00.mrimg" --set --password "mypassword" -l "c:\verifylog.txt"
mrverify.exe "d:\backups\*" --password "mypassword" -r -l "c:\verifylog.txt"

On success, mrverify.exe will return '0'. If any file fails verification, then the return code will be '1'.

The following success/failure text will be displayed in the command window and log:

Verify Success   The file contained no errors.
Verify Failure The file could not be verified successfully. Try the verification process again using the Macrium Reflect user interface. This may give more information on the problem.
Backup set is not complete. At least one file may be missing

At least one backup file required to restore this file cannot be opened and/or located in the same folder.

This message is displayed as a Warning or an Error failure condition if the --set command line switch is used.

Password Error The backup file is password protected and/or encrypted, and the supplied password is not correct.
Block 99999 - Repaired The -x OR --fix switch was used, and a data block has been repaired.