» oci_database_backup

This resource provides the Backup resource in Oracle Cloud Infrastructure Database service.

Creates a new backup in the specified database based on the request parameters you provide. If you previously used RMAN or dbcli to configure backups and then you switch to using the Console or the API for backups, a new backup configuration is created and associated with your database. This means that you can no longer rely on your previously configured unmanaged backups to work.

» Example Usage

resource "oci_database_backup" "test_backup" {
    #Required
    database_id = "${oci_database_database.test_database.id}"
    display_name = "${var.backup_display_name}"
}

» Argument Reference

The following arguments are supported:

  • database_id - (Required) The OCID of the database.
  • display_name - (Required) The user-friendly name for the backup. The name does not have to be unique.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

» Attributes Reference

The following attributes are exported:

» Import

Backups can be imported using the id, e.g.

$ terraform import oci_database_backup.test_backup "id"