Creating a User-defined Backup Policy

Create a user-defined (custom) backup policy in Block Volume. A user-defined backup policy includes configurable frequency, retention, optional cross-region copy, and optional schedules.

    1. On the Backup Policies list page, select Create backup policy. If you need help finding the list page or the backup policies, see Listing Backup Policies.
    2. On the Create backup policy page, enter the following information.
      • Name: Enter a name for the backup policy. Avoid entering confidential information.
      • Compartment: Select the compartment to create the backup policy in.

        While you select a compartment for the backup policy, it's accessible across your tenancy.

      • Cross region copy target: (Optional) Select a target region to enable cross region copy. This function automates the copying of the volume backup to the selected region after each backup is created. For more information, see Scheduling Volume Backup Copies Across Regions.

        Select the checkbox to acknowledge the warning.

        When you assign a backup policy with cross region copy enabled to a volume, you can optionally select Encrypt using customer-managed keys for Cross region backup copy encryption to encrypt the volume backup with a Vault key from the destination region. See Cross-Region Backup Copies for more information.

      • Tags: (Optional) Select Tags to add tags to the backup policy. If you have permissions to create a resource, then you also have permissions to apply free-form tags to that resource. To apply a defined tag, you must have permissions to use the tag namespace. For more information about tagging, see Resource Tags. If you're not sure whether to apply tags, skip this option or ask an administrator. You can apply tags later.
    3. Select Create backup policy.
  • Use the oci bv volume backup policy create command and specify the --compartment-id and --schedules parameters to create a volume backup policy:

    oci bv volume-backup-policy create --compartment-id <compartment_ID> --schedules file//<path>/<scheduleJSON>.json

    For example:

    oci bv volume-backup-policy create --compartment-id ocid1.compartment.oc1..<unique_ID> --schedules file//~/input.json

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

  • Run the CreateVolumeBackupPolicy operation and specify the compartmentId attribute for the CreateVolumeBackupPolicyDetails resource to create a user defined backup policy.