Editing a Schedule for a User-defined Backup Policy
Update a schedule in a user-defined (custom) backup policy in Block Volume.
Retention rules enforced when editing an individual volume backup do not apply when editing a backup policy. Users can modify policy settings, including increasing or decreasing retention periods and enabling or disabling Retention Lock.
To use backup retention features, you must configure the correct IAM policies. See Required IAM Policies for Backup Retention Features.
Navigate to Schedule
Navigate to the schedule you want.
- On the Backup Policies list page, select the backup policy that you want.
- Select Schedules.
- Find the schedule that you want to edit.
- From the , select Edit.
Edit Schedule
On the Edit schedule page, edit the following information.
- Schedule Type: Select the backup frequency and then select values for associated options, such as hour of the day, day of the week, day of the month, and month of the year.
- Backup type: Select Full or Incremental.
- Timezone: Select UTC or Regional Data Center Time.
Data Retention
The options selected when the backup was created determine the data retention options available.
No Retention Lock Enabled
If Retention lock is disabled, the retention period and lock can be set. See Adding a Schedule to a User-defined Backup Policy.
Retention Lock Enabled
If the Retention lock was enabled, the retention period cannot be reduced or removed. You can increase the duration of the retention period.
Delete Prevention
Controls whether the backup can be deleted based on its retention and delete prevention settings.
Delete prevention: There are two options:- Retention period disabled: Prevents any user from deleting the backup, until Delete prevention is enabled.
- Retention period enabled: Prevents deletion of the backup until the retention period is reached or Delete prevention is disabled.
Update schedule
After making your changes to the schedule, select Update.
Use the
oci bv volume-backup-policy updatecommand and specify the parameters to update the schedule for a volume backup policy:oci bv volume-backup-policy update --policy-id backup_policy_ID --schedules file://path/schedule_JSON.jsonFor example:
oci bv volume-backup-policy update --policy-id ocid1.volumebackuppolicy.oc1.phx.unique_ID --schedules file://~/input.jsonFor a complete list of parameters and values for CLI commands, see the CLI Command Reference.
Run the
UpdateVolumeBackupPolicyoperation and specify thepolicyIdparameter and thedefinedTags,destinationRegion,displayName,freeformTagsand/orschedulesattributes in theUpdateVolumeBackupPolicyDetailsresource to edit your backup policy schedule.