Skip to main content

backup_destinations

Creates, updates, deletes, gets or lists a backup_destinations resource.

Overview​

Namebackup_destinations
TypeResource
Idoci.database.backup_destinations

Fields​

The following fields are returned by SELECT queries:

The backup destination.<br />

NameDatatypeDescription
idstringThe [OCID](/Content/General/Concepts/identifiers.htm) of the backup destination.
associatedDatabasesarrayList of databases associated with the backup destination.
associatedLongTermBackupCountintegerIndicates the number of long term backups of Autonomous AI Databases associated with this backup destination.
associatedLongTermBackupsarrayList of long term backups of Autonomous AI Databases associated with this backup destination.The maximum associated number of long term backup listed here would be 1024.
compartmentIdstringThe [OCID](/Content/General/Concepts/identifiers.htm) of the compartment.
connectionStringstringFor a RECOVERY_APPLIANCE backup destination, the connection string for connecting to the Recovery Appliance.
definedTagsobjectDefined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](/Content/General/Concepts/resourcetags.htm).
displayNamestringThe user-provided name of the backup destination.
freeformTagsobjectFree-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](/Content/General/Concepts/resourcetags.htm). Example: &#123;"Department": "Finance"&#125;
lifecycleDetailsstringA descriptive text associated with the lifecycleState. Typically contains additional displayable text
lifecycleStatestringThe current lifecycle state of the backup destination. (ACTIVE, FAILED, DELETED)
localMountPointPathstringThe local directory path on each VM cluster node where the NFS server location is mounted. The local directory path and the NFS server location must each be the same across all of the VM cluster nodes. Ensure that the NFS mount is maintained continuously on all of the VM cluster nodes.
nfsMountTypestringNFS Mount type for backup destination. (SELF_MOUNT, AUTOMATED_MOUNT)
nfsServerarrayHost names or IP addresses for NFS Auto mount.
nfsServerExportstringSpecifies the directory on which to mount the file system
systemTagsobjectSystem tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](/Content/General/Concepts/resourcetags.htm).
timeAtWhichStorageDetailsAreUpdatedstring (date-time)The time when the total storage size and the utilized storage size of the backup destination are updated.
timeCreatedstring (date-time)The date and time the backup destination was created.
totalStorageSizeInGBsintegerThe total storage size of the backup destination in GBs, rounded to the nearest integer.
typestringType of the backup destination. (NFS, RECOVERY_APPLIANCE)
utilizedStorageSizeInGBsintegerThe total amount of space utilized on the backup destination (in GBs), rounded to the nearest integer.
vpcUsersarrayFor a RECOVERY_APPLIANCE backup destination, the Virtual Private Catalog (VPC) users that are used to access the Recovery Appliance.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectbackupDestinationId, regionopc-request-idGets information about the specified backup destination in an Exadata Cloud@Customer system.<br />
createinsertregion, displayName, compartmentId, typeopc-retry-token, opc-request-idCreates a backup destination in an Exadata Cloud@Customer system.<br />
updateupdatebackupDestinationId, regionif-match, opc-request-idIf no database is associated with the backup destination:<br />- For a RECOVERY_APPLIANCE backup destination, updates the connection string and/or the list of VPC users.<br />- For an NFS backup destination, updates the NFS location.<br />
deletedeletebackupDestinationId, regionif-match, opc-request-idDeletes a backup destination in an Exadata Cloud@Customer system.<br />
change_compartmentexecbackupDestinationId, region, compartmentIdopc-retry-token, opc-request-id, if-matchMove the backup destination and its dependent resources to the specified compartment.<br />For more information, see<br />[Moving Database Resources to a Different Compartment](/Content/Database/Concepts/databaseoverview.htm#moveRes).<br />

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
backupDestinationIdstringThe [OCID](/Content/General/Concepts/identifiers.htm) of the backup destination.
regionstringOCI region identifier (e.g. us-ashburn-1, ap-sydney-1); resolves from OCI_REGION when not supplied in the query. (default: us-ashburn-1, x-stackQL-envVar: OCI_REGION)
if-matchstringFor optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value.
opc-request-idstringUnique identifier for the request.
opc-retry-tokenstringA token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations (for example, if a resource has been deleted and purged from the system, then a retry of the original creation request may be rejected).

SELECT examples​

Gets information about the specified backup destination in an Exadata Cloud@Customer system.<br />

SELECT
id,
associatedDatabases,
associatedLongTermBackupCount,
associatedLongTermBackups,
compartmentId,
connectionString,
definedTags,
displayName,
freeformTags,
lifecycleDetails,
lifecycleState,
localMountPointPath,
nfsMountType,
nfsServer,
nfsServerExport,
systemTags,
timeAtWhichStorageDetailsAreUpdated,
timeCreated,
totalStorageSizeInGBs,
type,
utilizedStorageSizeInGBs,
vpcUsers
FROM oci.database.backup_destinations
WHERE backupDestinationId = '{{ backupDestinationId }}' -- required
AND region = '{{ region }}' -- required
AND opc-request-id = '{{ opc-request-id }}'
;

INSERT examples​

Creates a backup destination in an Exadata Cloud@Customer system.<br />

INSERT INTO oci.database.backup_destinations (
compartmentId,
definedTags,
displayName,
freeformTags,
type,
region,
opc-retry-token,
opc-request-id
)
SELECT
'{{ compartmentId }}' /* required */,
'{{ definedTags }}',
'{{ displayName }}' /* required */,
'{{ freeformTags }}',
'{{ type }}' /* required */,
'{{ region }}',
'{{ opc-retry-token }}',
'{{ opc-request-id }}'
RETURNING
id,
associatedDatabases,
associatedLongTermBackupCount,
associatedLongTermBackups,
compartmentId,
connectionString,
definedTags,
displayName,
freeformTags,
lifecycleDetails,
lifecycleState,
localMountPointPath,
nfsMountType,
nfsServer,
nfsServerExport,
systemTags,
timeAtWhichStorageDetailsAreUpdated,
timeCreated,
totalStorageSizeInGBs,
type,
utilizedStorageSizeInGBs,
vpcUsers
;

UPDATE examples​

If no database is associated with the backup destination:<br />- For a RECOVERY_APPLIANCE backup destination, updates the connection string and/or the list of VPC users.<br />- For an NFS backup destination, updates the NFS location.<br />

UPDATE oci.database.backup_destinations
SET
connectionString = '{{ connectionString }}',
definedTags = '{{ definedTags }}',
freeformTags = '{{ freeformTags }}',
localMountPointPath = '{{ localMountPointPath }}',
nfsMountType = '{{ nfsMountType }}',
nfsServer = '{{ nfsServer }}',
nfsServerExport = '{{ nfsServerExport }}',
vpcUsers = '{{ vpcUsers }}'
WHERE
backupDestinationId = '{{ backupDestinationId }}' --required
AND region = '{{ region }}' --required
AND if-match = '{{ if-match}}'
AND opc-request-id = '{{ opc-request-id}}'
RETURNING
id,
associatedDatabases,
associatedLongTermBackupCount,
associatedLongTermBackups,
compartmentId,
connectionString,
definedTags,
displayName,
freeformTags,
lifecycleDetails,
lifecycleState,
localMountPointPath,
nfsMountType,
nfsServer,
nfsServerExport,
systemTags,
timeAtWhichStorageDetailsAreUpdated,
timeCreated,
totalStorageSizeInGBs,
type,
utilizedStorageSizeInGBs,
vpcUsers;

DELETE examples​

Deletes a backup destination in an Exadata Cloud@Customer system.<br />

DELETE FROM oci.database.backup_destinations
WHERE backupDestinationId = '{{ backupDestinationId }}' --required
AND region = '{{ region }}' --required
AND if-match = '{{ if-match }}'
AND opc-request-id = '{{ opc-request-id }}'
;

Lifecycle Methods​

Move the backup destination and its dependent resources to the specified compartment.<br />For more information, see<br />[Moving Database Resources to a Different Compartment](/Content/Database/Concepts/databaseoverview.htm#moveRes).<br />

EXEC oci.database.backup_destinations.change_compartment
@backupDestinationId='{{ backupDestinationId }}' --required,
@region='{{ region }}' --required,
@opc-retry-token='{{ opc-retry-token }}',
@opc-request-id='{{ opc-request-id }}',
@if-match='{{ if-match }}'
@@json=
'{
"compartmentId": "{{ compartmentId }}"
}'
;