After restoring your Client node, you can further configure your environment to deactivate or reinstate the backup process.
Procedure
- (Optional) Deactivate the backup process if the NFS file server is full or if there is a network problem.
POST http://127.0.0.1:8546/api/backup?action=disable
- (Optional) Configure a backup process.
POST http://127.0.0.1:8546/api/backup { "retention_days": 33, "schedule_frequency": "DAILY" }
- (Optional) Perform an on-demand backup process.
Note:
Before you perform an on-demand backup, the backup process must be configured. The on-demand backup can be performed even if the backup functionality is deactivated. But the backup must always be configured before an on-demand backup request can be issued.
In some cases, you might need to perform a backup outside of the regularly scheduled frequency.
POST http://127.0.0.1:8546/api/backup?action=run_now
If you want to perform an on-demand backup even though you have deactivated it previously, then use the POST http://127.0.0.1:8546/api/backup?action=run_now&force command.
- Check the backup process status.
GET http://127.0.0.1:8546/api/backup/status
If the backup process has errors, the execution_status_code key has a non-zero value, and the execution_error key lists the error returned by pgBackRest.
- (Optional) Verify the history of backups to determine which point in time restore process to use.
sudo docker exec -it -u postgres daml_index_db pgbackrest --stanza=daml-indexdb --log-level-console=info info