Appearance
Running Incremental Restores
This section lays out the steps and requirements for making use of incremental restore operations. Incremental restores reduce the time and resources required to maintain an up-to-date copy of a database that was originally created from a full restore.
Follow these steps:
Back up the source database with at least one full backup.
Restore the database with the same name on a separate DR cluster or with a different name on the same source cluster. Do not set
--hot-standby offin theybrestorecommand.Leave the restored database in
HOT_STANDBYstate, which is the default state for a restore operation. Do not set the restored database toREADONLYor setHOT_STANDBYtoOFF.Continue backing up the source database on a regular schedule, using cumulative or incremental backups. Keep track of the backup history by using the
ybbackupctl --listcommand or running queries on thesys.log_backupview.Periodically run incremental restores on the restored database. Make sure you specify the correct settings for the following options:
--point: equivalent to the backup name in theybbackupcommand--chain: the backup chain for the source database
The ybrestore command checks the restore point and only applies changes as needed.