Creating a Block Volume Backup
Create a backup for a volume in the Block Volume service.
A volume backup is a copy of the volume's data stored independently in Object Storage with an independent lifecycle. For more information, see Block Volume Backups. Create a manual backup for a volume by using the steps in this topic. To create backups based on a defined schedule and retention policy, see Backup Policies.
Manual backups support configurable retention periods that allow the backups to expire automatically when the retention criteria are met.
For information to help you decide whether to create a backup or a clone of a boot volume, see Differences Between Block Volume Backups and Clones. For more information about backups, see Block Volume Backups and Restoring a Backup to a New Volume.
The size of a volume backup might be larger than the current volume usage. See Volume Backup Size.
To use backup retention features, you must configure the correct IAM policies. See Required IAM Policies for Backup Retention Features.
To create a block volume backup using the console, follow these steps.
1. Basic Information
Fill out this basic information.
- On the Block Volumes list page, select the volume that you want. If you need help finding the list page or the volumes, see Listing Volumes.
- On the details page, select Backups, and then select Create Block Volume Backup.
- On the Create block volume backup panel, enter the following information.
- Name: Enter a name for the backup. Avoid entering confidential information.
- Backup type: Select the backup type, either incremental or full.
- Incremental: This backup type includes only the changes since the last backup.
- Full: This backup type includes all data on the volume.
- Tags: (Optional) Add tags to the backup. 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.
2. Data Retention
Select the time period the backup is retained before automatic deletion. The retention period cannot be shortened if the retention lock is enabled.
Retention Period
- No retention period (keep until deleted): No automatic deletion takes place. The backup is kept until it is deleted.
- Set up retention period: Selecting this option enables more options.
- Retention time amount: The length of time a backup is kept.
- Retention time unit: The unit of time for the retention period: DAYS or YEARS.
- Retention lock: When enabled, prevents the backup from being deleted until the retention period is reached. Warning
Once the retention lock is enabled, the retention period cannot be reduced or removed.
Tip
Users can create manual backups with an indefinite retention period.Tip
Delete prevention only prevents deletion of backups that have not expired. Expired backups are deleted automatically.Important
Users with theRETENTION_RULE_INDEFINITE_HOLDprivilege may enable or disable indefinite hold on a backup.3. 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.
4. Create Backup
Select Create. The backup is created.
The backup is complete when the State column on the Block Volume Backups list page no longer displays CREATING.
Use the
oci bv backup createcommand and specify the--volume-idparameter to create a block volume backup.oci bv backup create --volume-id <volume_OCID> --retention-period '{"retentionTimeAmount":<NumberOfDaysOrYears>,"retentionTimeUnit":"DAYS|YEARS"}'The following is an example of the command.
oci bv backup create --volume-id ocid1.volume.oc1..<unique_ID> --retention-period '{"retentionTimeAmount":1,"retentionTimeUnit":"DAYS"}'For a complete list of parameters and values for CLI commands, see the CLI Command Reference.
Run the
CreateVolumeBackupoperation and specify thevolumeIdattribute for theCreateVolumeBackupDetailsresource to create a block volume backup.For information about using the API and signing requests, see REST API documentation and Security Credentials. For information about SDKs, see SDKs and the CLI.