After a backup or secondary backup operation is completed, you can verify the backup data in a specified path in a cluster.
Considerations
Before you validate the backup data, make sure that the data to be verified meets the following requirements:
All backup data is generated upon a successful backup.
The backup data is not cleared.
Verify all backup data or secondary backup data in a cluster
Log on to the
systenant as therootuser.Execute the following statement to verify all backup data or secondary backup data in a specified path in a cluster.
Syntax:
obclient> ALTER SYSTEM VALIDATE DATABASE backup_dest='xxx';Here,
xxxis the path specified for the backup. Replace it with the actual path.
Verify a specified backup set or secondary backup set in a cluster
Log on to the
systenant as therootuser.Execute the following statement to verify the backup set or secondary backup set in a specified path in a cluster.
Syntax:
obclient> ALTER SYSTEM VALIDATE BACKUPSET backup_set_id backup_dest = 'xxx';Parameters:
backup_set_idis the ID of the backup set or secondary backup set.xxxis the path specified for the backup. Replace it with the actual path.
Verify the log backup or the secondary log backup in the specified path
Log on to the
systenant as therootuser.Execute the following statement to verify the log backup or the secondary log backup in a specified path in a cluster.
Syntax:
obclient> ALTER SYSTEM VALIDATE BACKUPPIECE backup_piece_id backup_dest = 'xxx';Parameters:
backup_piece_idis thepiece_idof the log backup or the secondary log backup``.Here,
xxxis the path specified for the log backup. Replace it with the actual path.
Related topics
After you perform verification, you can query the corresponding views to check the verification results. For more information, see View data verification results.