Creating a Database System from a Backup
Create a new database system from an existing backup in OCI Database with PostgreSQL.
Caution
Database systems can only be created in subnets that don't have IPv6 enabled. If you select an existing subnet with IPv6 enabled, database system creation fails.
Database systems can only be created in subnets that don't have IPv6 enabled. If you select an existing subnet with IPv6 enabled, database system creation fails.
Note
If you're creating the database system in a new region, such as when using a backup copied to another region for disaster recovery, you might need to create a configuration in that region as well. If you don't select a custom configuration for the database system, the default configuration is applied.
If you're creating the database system in a new region, such as when using a backup copied to another region for disaster recovery, you might need to create a configuration in that region as well. If you don't select a custom configuration for the database system, the default configuration is applied.
For more information, see Managing OCI Database with PostgreSQL Backups.
Use the
oci psql db-system create-db-system-backup-source-details
command and required parameters to create a database system from a backup:oci psql db-system create-db-system-backup-source-details --compartment-id <compartment_OCID> --db-version <db_version> --display-name <display_name> --network-details <file://network-details.json> --shape <shape> --source-backup-id <source_backup_OCID> --storage-details <file://storage-details.json> --system-type <system_type> [OPTIONS]
For a complete list of parameters and values for CLI commands, see the CLI Command Reference.
Run the CreateDbSystem operation and use
SourceDetails
to specify a backup to create a database system from the backup.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.