如何检查 Vertica 备份(或数据库)是否处于有效状态?

How to check that Vertica backup (or database) is in valid state?

如何检查 Vertica 备份(或数据库)是否处于有效状态并且我可以从中毫无问题地恢复数据库?

P.S.

几天前,我对 Vertica 备份有非常负面的体验:vbr 从损坏的数据库创建备份。当我尝试从这样的 "backup" 恢复数据库时,vbr 实用程序恢复了它,但我无法启动数据库(Vertica 运行 恢复过程并以错误完成它)。似乎 vbr 在备份前不检查数据库状态。

从 7.2.2 开始,vbr 可以对备份进行完整性检查。来自 documentation:

A quick check gathers all backup metadata from the backup location specified in the configuration file and compares that metadata to the backup manifest. A quick check does not verify the objects themselves. Instead, this task outputs an exceptions list of any discrepancies between objects in the backup location and objects listed in the backup manifest.

[...] A full check verifies all objects listed in the backup manifest against file system metadata. A full check includes the same steps as a quick check.

命令是:

vbr -t [quick-check | full-check] -c configfile.ini --report-file=path/filename
    

如果您对 vertica 数据库以及其他数据库(如 Cassandra、Hadoop 等)的粒度备份和恢复感兴趣,您还可以查看 Talena 软件(我公司)