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.
For more information, see Managing Backups of an OCI Database with PostgreSQL.
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.