Hello and welcome to this video on Oracle Private Cloud Appliance.
In this video, you will learn to manage backup policies for block volumes on
Oracle Private Cloud Appliance.
Block Volume service provides you with the capability to perform volume backups
and volume group backups automatically on a schedule and retain them based on
the selected backup policy.
Creating a backup policy using the CLI creates the policy and the schedule using
one command.
I've already installed the OCI CLI so please refer to the video Configure
the OCI CLI.
From the command line, let's query our appliance for the compartment OCID by
running the command:
oci iam compartment list
The results show the compartment ocid to use.
Next, let's create a volume backup policy by running the
following command:
oci bv volume-backup-policy create --compartment-id the OCID of the compartment
--display-name my-bp-01 --schedules which includes the backupType
of FULL a period of ONE_DAY
hourOfDay: 23 retentionSeconds of 172800 or 2 Days
and the timeZone UTC which stands for coordinated universal time.
Let's now turn to the Web UI, and view the new volume backup policy.
From the dashboard, click on the navigation menu, then Block Storage, and
then backup policies.
As you can see, our new backup policy called my-bp-01 was created.
We'll click on it and see more details such as the schedule type the backup Type
start time, and retention time as assigned.
You can assign a backup policy to a volume at these stages: during volume creation
and after the volume is created.
Let's assign policy my-bp-01 to block volume my-bv-01.
Run the following command to assign a policy to a volume already created:
oci bv volume-backup-policy-assignment create --asset-id
--policy-id
Let's again return to the Web UI to view the new assignment.
From the dashboard, click on the navigation menu, then block storage, and
then block volumes.
Let's view the backup policy for my-bv-01.
As you can see, an automated backup policy was assigned to this block volume.
Finally, let's delete the backup policy using the Web GUI by clicking
on the name of the policy you want to delete.
Then, click delete.
When the dialog appears, confirm the deletion.
As a result, the backup policy was deleted from the block volume.
For more information, please check our additional information on Oracle Private
Cloud Appliance documentation or in the Oracle Private Cloud Appliance Learning
Library.
This concludes the video.
Thank you for watching.