Creating a Boot Volume Backup
Create a backup for a boot volume.
You can create a backup of a boot volume using the Oracle Cloud Infrastructure Block Volume service. Boot volume backups are point-in-time snapshots of a boot volume. For more information about boot volume backups, see Boot Volume Backups.
You can also configure a backup policy that creates backups automatically based on a specified schedule and retention policy. Backup policies work the same as they do with block volumes. See Backup Policies for more information.
For information to help you decide whether to create a backup or a clone of a boot volume, see Differences Between Boot Volume Backups and Clones.
Boot volume backup size might be larger than the source boot volume size. See Boot Volume Backup Size for more information. See also Boot volume backup size larger than expected.
To use backup retention features, you must configure the correct IAM policies. See Required IAM Policies for Backup Retention Features.
Boot Volume Backup Size
Boot volume backup size may be larger than the source boot volume size. Some of the reasons for this could include the following:
-
Any part of the boot volume that has been written to is considered initialized, so will always be part of the boot volume backup.
-
Many operating systems write or zero out the content, which results in these blocks marked as used. The Block Volume service considers these blocks updated and includes them in the volume backup.
-
Boot volume backups also include metadata, which can be up to 1 GB in additional data. For example, in a full backup of a 256 GB Windows boot disk, you may see a backup size of 257 GB, which includes an additional 1 GB of metadata.
To create a boot volume backup using the console, follow these steps.
- In the Boot Volumes list page, select the boot volume you want to work with. If you need help finding the list page or the boot volume, see Listing Boot Volumes.
- Select Backups.
- Select Create Boot Volume Backup.
1. Basic Information
On the Create boot volume backup panel, enter the following information.
-
Enter a name for the backup. Avoid entering confidential information.
- Select the backup type, either incremental or full. See Boot Volume Backup Types for information about backup types.
- (Optional) Tags: 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 boot volume backup.
The backup is complete when its state is no longer listed as CREATING in the State column on Boot Volume Backups list page.
Use the
oci bv boot-volume-backup createcommand and specify the--boot-volume-idparameter to create a new boot volume backup:oci bv boot-volume-backup create --boot-volume-id <boot_volume_id>For a complete list of parameters and values for CLI commands, see the CLI Command Reference.
Run the
CreateBootVolumeBackupoperation and specify thebootVolumeIdattribute in theCreateBootVolumeBackupDetailsresource to create a boot volume backup.