Scheduling OCI Database with PostgreSQL Backups
Schedule automatic backups of an OCI Database with PostgreSQL database system.
Use the database's management policy to enable automatic, scheduled backups of a database. The management policy lets you specify the backup frequency, run time, and the retention period of the backups.
When you schedule automated backups, you can also specify that copies of the backup are distributed to another region. You can use a backup that's been replicated to a second region to provision a database system if the primary database system is unavailable.
- Open the navigation menu and select Databases. Under PostgreSQL, select DB Systems.
- (Optional) In the List scope section, under Compartment, select a compartment.
- Select the name of the database for which you want to enable automatic backups.
- On the database system details page, select More actions and then select Edit management policy.
-
In the Edit management policy panel, select Enable automatic backups.
- Select Save changes.
Use the
oci psql db-system update
command and the--management-policy
parameter to update the management policy of a database:oci psql db-system update --db-system-id <database_OCID> --management-policy <file://management-policy-details.json>[OPTIONS]
For a complete list of parameters and values for CLI commands, see the CLI Command Reference.
Run the UpdateDbSystem operation with the
managementPolicy
attribute to update the management policy of the database.For information about using the API and signing requests, see REST API documentation and Security Credentials. For information about SDKs, see SDKs and the CLI.