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.
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 thecompartmentId
attribute for theCreateVolumeBackupPolicyDetails
resource to create a user defined backup policy.