View backups for an Autonomous AI Database

This page describes how to view backups for an Autonomous AI Database in Google Cloud.

Autonomous AI Database lets you create automatic backups of your data that can be used to restore lost data or provide protection against errors. Backups are highly available and are stored for the retention period defined in your Autonomous AI Database's settings.

In Oracle Database@Google Cloud, Autonomous AI Database backup retention is set in days and can range from 1 to 60 days, with a default value of 60 days. The retention period is set when you create a database and can't be modified in Google Cloud after creation. To modify the retention period in OCI, see About Backup and Recovery on Autonomous AI Database.

Backups beyond the set retention period are automatically deleted. Automatic backups are managed by Oracle Cloud Infrastructure (OCI) and billed separately, in addition to database storage.

To see your database's backup settings, View database information.

To learn more about how backup and recovery works for an Autonomous AI Database, see About Backup and Recovery on Autonomous AI Database.

View backups for an Autonomous AI Database

To view the available backups for an Autonomous AI Database, do the following:

Console

  1. Go to the Autonomous AI Database page.

    Go to Autonomous AI Database

  2. Click the name of the Autonomous AI Database for which you want to view the backups.

  3. On the Autonomous AI Database details page, select the Backups tab.

    You can view the details of the available backups.

gcloud

Use the gcloud oracle-database autonomous-database-backups list command to view the available backups.

gcloud oracle-database autonomous-database-backups list
--filter='autonomous_database_id="DATABASE_NAME"'
--location=REGION_ID
--project=PROJECT_NAME

Replace the following:

  • DATABASE_NAME: name of the database you want to view backups for.
  • REGION_ID: the region of your database.
  • PROJECT_NAME: the name of your Google Cloud project.

API

To list backups of an Autonomous AI Database, run the following curl command.

 curl -X GET 
-H "Authorization: Bearer $(gcloud auth print-access-token)"
-H "Content-Type: application/json"
"https://oracledatabase.googleapis.com/v1/projects/PROJECT_ID/locations/REGION/autonomousDatabaseBackups?autonomous_database_id="DATABASE_ID""

Replace the following:

  • PROJECT_ID: the ID of your Google Cloud project. If you're using a Shared VPC, then this project ID is the ID of your host project.
  • REGION: the region of your database.
  • DATABASE_ID: the ID of your database.

C#

using Google.Api.Gax;
using Google.Cloud.OracleDatabase.V1;
using System;
using System.Threading.Tasks;

public sealed partial class GeneratedOracleDatabaseClientSnippets
{
    /// <summary>Snippet for ListAutonomousDatabaseBackupsAsync</summary>
    /// <remarks>
    /// This snippet has been automatically generated and should be regarded as a code template only.
    /// It will require modifications to work:
    /// - It may require correct/in-range values for request initialization.
    /// - It may require specifying regional endpoints when creating the service client as shown in
    ///   https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
    /// </remarks>
    public async Task ListAutonomousDatabaseBackupsAsync()
    {
        // Create client
        OracleDatabaseClient oracleDatabaseClient =