Assigning a Backup Policy to a Volume

Learn how to assign a backup policy to an existing user- or Oracle-defined volume.

    1. On the Block Volumes list page, find the volume that you want to work with. If you need help finding the list page or the volumes, see Listing Volumes.
    2. From the Actions menu (three dots) for the volume, select Edit.
    3. In the Edit block volume panel, under Backup Policies, select the compartment containing the backup policies, and then select the backup policy that meets your requirements.
      Optionally, if you select a backup policy enabled for cross region backup copies, you can encrypt the backup copy in the destination region with your own Vault encryption key by selecting Encrypt using customer-managed keys for Cross region backup copy encryption. If you select this option, you must specify the OCID for a valid encryption key in the destination region, see Customer-Managed Encryption Keys for Cross-Region Operations for more information.
    4. Select Save changes.
  • Use theoci bv volume-backup-policy-assignment create command and specify the --asset-id, --policy-id and --xrc-kms-key-id parameters to assign a user- or Oracle-defined backup policy to a volume:

    oci bv volume-backup-policy-assignment create --asset-id <volume_ID> --policy-id <policy_ID> --xrc-kms-key-id <kms_key_ID>

    For a complete list of parameters and values for CLI commands, see the CLI Command Reference.

  • Run the CreateVolumeBackupPolicyAssignment operation and specify the assetId and policyId attributes in a CreateVolumeBackupPolicyAssignmentDetails resource to assign a backup policy to a volume.