The Oracle Cloud Infrastructure Block Volume service provides you with the capability to perform volume backups automatically on a schedule and retain them based on the selected backup policy. This allows you to adhere to your data compliance and regulatory requirements.
Deleting Block Volumes with Policy-Based Backups
All policy-based backups will eventually expire, so if you want to keep a volume backup indefinitely, you need to create a manual backup.
Oracle defined: Predefined backup policies that have a set backup frequency and retention period. You cannot modify these policies.
User defined: Custom backup policies that you create and configure schedules for.
Oracle Defined Backup Policies
There are three Oracle defined backup policies, Bronze, Silver, and Gold. Each backup policy is comprised of schedules with a set backup frequency and a retention period that you cannot modify. If the backup policy settings for Oracle defined policies don't meet your requirements, you should use User Defined Backup Policies instead. With user defined backup policies you define and control the schedules.
The bronze policy includes monthly incremental backups, run on the first day of the month. These backups are retained for twelve months. This policy also includes a full backup, run yearly on January 1st. Full backups are retained for five years.
The silver policy includes weekly incremental backups that run on Sunday. These backups are retained for four weeks. This policy also includes monthly incremental backups, run on the first day of the month and are retained for twelve months. Also includes a full backup, run yearly on January 1st. Full backups are retained for five years.
The gold policy includes daily incremental backups. These backups are retained for seven days. This policy also includes weekly incremental backups that run on Sunday and are retained for four weeks. Also includes monthly incremental backups, run on the first day of the month, retained for twelve months, and a full backup, run yearly on January 1st. Full backups are retained for five years.
User Defined Backup Policies
Oracle Cloud Infrastructure enables you to customize your backup schedules with user defined policies. These are backup policies that you define the backup frequency and retention period for. There are two parts to user defined backup policies, the backup policy itself, and then one or more schedules in the policy.
To get started with user defined backup policies, you need to first create the backup policy, see To create a user defined backup policy. After this step, you have an empty backup policy, so the next step is to define and add schedules to the policy.
Schedules define the backup frequency and retention period for a user defined backup policy, just like Oracle defined backup policies. The difference is that you can customize the schedules associated with user defined policies. This gives you control over the backup frequency and retention period.
When defining a schedule for a user defined backup policy, the first thing you configure is the schedule type, this specifies the backup frequency. Oracle Cloud Infrastructure provides the following schedule types:
Daily: Backups are generated daily. You specify the hour of the day for the backup.
Weekly: Backups are generated weekly. You specify the day of the week, and the hour of that day for the backup.
Monthly: Backups are generated monthly. You specify the day of the month, and the hour of that day for the backup.
Yearly: Backups are generated yearly. You specify the month, the day of that month, and the hour of that day for the backup.
In addition to frequency, you also configure the following:
Retention time: The amount of time to keep the backup, in days, weeks, months, or years. The time period is based the schedule type.
You can create a new backup policy by duplicating any of the existing backup policies.
If one of the Oracle defined policies is close to meeting your volume backup requirements, but with some changes, you can create a new backup policy by duplicating the Oracle defined policy. This creates a new user defined backup policy with schedules already assigned, enabling you to use the Oracle defined policy's settings as a starting point to save time and simplify the process.
You can also duplicate an existing user defined policy. For more information, see To duplicate a backup policy. You can then add, edit, or delete schedules for the new backup policy.
Working with Backup Policies
There are two types of tasks when working with backup policies:
The linked sections listed above provide information for working with backup policies using the Console, CLI, and REST APIs.
Required IAM Policy
To use Oracle Cloud Infrastructure, you must be given the required type of access in a policy written by an administrator, whether you're using the Console or the REST API with an SDK, CLI, or other tool. If you try to perform an action and get a message that you don’t have permission or are unauthorized, confirm with your administrator the type of access you've been granted and which compartment you should work in.
To view or work with backup policies, you need access to the root compartment, which is where the predefined backup policies are located.
You can apply tags to your resources to help you organize them according to your business needs. You can update the resource later with the desired tags. For general information about applying tags, see Resource Tags.
Creating and Configuring User Defined Backup Policies
Using the Console
You can use the Console to create and update user defined backup policies.
Open the navigation menu. Under Core Infrastructure, go to Block Storage and click Backup Policies.
Click the backup policy you want to add the schedule to.
Click Add Schedule.
Specify the backup frequency by selecting from the Schedule Type options: Daily, Weekly, Monthly, or Yearly, and then configure the additional schedule options. Depending on the schedule type, the additional schedule options will include one or more of the following:
Hour of the day
Day of the week
Day of the month
Month of the year
Specify the Retention Time, which will be in days, weeks, months, or years, depending on the schedule type you selected in the previous step.
Select Full or Incremental for Backup Type.
Select the Timezoneto base the schedule settings on, either UTC or Regional Data Center Time.