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:

** 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:

Timeouts

The timeouts block allows you to specify timeouts for certain operations: * create - (Defaults to 1 hours), when creating the Backup * update - (Defaults to 1 hours), when updating the Backup * delete - (Defaults to 1 hours), when destroying the Backup

Import

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

$ terraform import oci_database_backup.test_backup "id"