Skip to content

How to Setup Scheduled Backup of Compute Instance in OCI

Manoj Kumar Aug 30, 2023 9:45:00 AM
How to Setup Scheduled Backup of Compute Instance in OCI – Eclipsys
2:22

In this blog, post I will show you how to take a backup of the compute instance and schedule it.

oci

 

There are 2 Backup Types Available:

Full = Includes all changes since the volume was created
Incremental = Includes only the changes since the last backup

So a backup of compute instance means backup of  “Boot volume + block volume.”

This is the point-in-time backup of data to Object Storage.

 

Steps:

1. Create a Backup policy:

First, we need to create a backup policy to attach to the volume group, so it automatically takes backups as per policy.

Go to OCI –> Click on Storage –> Block Storage –> Backup Policy

oci2

 

You will see we already have 3 Oracle-defined policies.

 

Note: Oracle-defined backup policies are not supported for scheduled volume group backups.

So let’s create a user-defined backup policy:

Click on Create Backup Policy and provide any name, I am not using any cross-region copy target so keep None and click on Create Backup Policy.

oci3

 

Now we need to add a schedule for backups, click Add Schedule

oci4

 

Add Schedule for full backup (I am taking a weekly full backup), click add schedule.

oci5

 

Now click again on add a schedule and add for incremental backup

oci6

 

You can see both schedules

oci7

 

2. Create a Volume Group:

A volume group can include both types of volumes, boot volumes, which are the system disks for your compute instances, and block volumes for your data storage.

Go to OCI –> Click on Storage –> Block Storage –> Volume Groups 

oci8

 

Click on Create Volume Group, give any name select availability domain, and click next

oci9

 

Next, select the volumes used in the compute instance (boot volume + if you are using any block volume)

 

I have one block volume attached to my VM, so I select boot volume + one block volume. If you are using more block volumes, add all here.

oci10

 

click next, I am not enabling cross-region replication

oci11

 

Next, select the backup policy we created earlier

oci12

 

Next review the summary page for all info and click Create

oci13

 

It takes a few seconds and the volume group will be created.

oci14

 

3. After a few days when you Click on Volume Group Backups you will see the volume group backups as per the job policy.

something like that

oci15

 

This way we can take or schedule compute instance backups.

 

In the next blog, I will show you how to restore from volume group backup and create a new instance.

Leave a Comment