How to validate a backup archive

This is required when an error of “The archive is corrupted.” is received and the archive is potentially corrupted.

Sometimes it is necessary to determine whether an archive stored in the cloud is consistent, i.e. to validate a backup for the possibility of data recovery. This operation is called backup validation.

Step 1

The commands below contain the parameter for saving logs. To make logs more detailed and informative you may first want to change logging level to “debug”:
1. Navigate to C:\Program Files\BackupClient\BackupAndRecovery\
2. Open the file named mms.config
3. Find the line containing the following string: <channel id=”mms” level=”info”
4. Change level=”info” to level=”debug”.
5. Save the file and restart Acronis Managed Machine Service.

First, obtain the list of archives by issuing:
acrocmd list archives –loc=online:// –credentials=<account>,<password>  –log=C:\Log.xml –output=raw > C:\archives.txt

where
<account> is the account holding the data
<password> is the password for this account

The command writes a list of all archives for a particular account to the file C:\archives.txt.

Optionally, you can obtain a list of all backups inside the archive to validate a specific backup:
acrocmd list backups –loc=online:// –credentials= <account>,<password>  –arc=<archive_ID>  –output=raw > C:\backup_list.txt

where
<account> is the account holding the data
<password> is the password for this account
<archive_ID> is the ID of the archive which backups you want to list

C:\backup_list.txt will contain the list of backups inside the archive.

Step 2

You can either validate the whole archive or a specific backup.

To validate the whole archive, issue:
acrocmd validate archive –loc=online:// –credentials= <account>,<password>  –arc=<archive_name> –log=C:\Log_validation.xml –output=raw  > C:\archive_validation.txt

where
<account> is the account holding the data
<password> is the password for this account
<archive_name> is the name of the archive you validate, which you found in archives.txt generated in step 1

C:\archive_validation.txt will contain the result of validation. The full log of the validation procedure can be found under \%allusersprofile%\Acronis\ServiceProcess\  in the respective log of service_process.exe.

To validate a specific backup in the chain:
acrocmd validate backup –loc=online:// –credentials= <account>,<password>  –arc=<archive_name>  –backup=<backup_ID> –log=C:\Log_backup_validation.xml –output=raw > C:\backup_validation.txt

where
<account> is the account holding the backed up data
<password> is the password for this account
<archive_name> is the name of the archive containing the backup you want to validate, which you found in archives.txt generated in step 1
<backup_ID> is the ID of the backup you want to validate, which you found in backup_list.txt generated in step 1

C:\backup_validation.txt will contain the result of validation. Full log of validation procedure can be found under \%allusersprofile%\Acronis\ServiceProcess\ in the respective log of service_process.exe.

Validation of the latest backup may also take time, even if this backup is incremental or differential, and small in size. This is because the operation validates not only the data physically contained in the backup, but all of the data recoverable by selecting the backup. This requires access to previously created backups.

Related Articles