Assigning a Backup Policy to a Volume
Learn how to assign a backup policy to an existing user- or Oracle-defined volume.
Use the
oci 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 theassetId
andpolicyId
attributes in aCreateVolumeBackupPolicyAssignmentDetails
resource to assign a backup policy to a volume.