To manage a database, you can either use an existing instance or add a new instance.
Before You Begin
-
To discover database instances, enable the Cloud SQL Admin and Cloud Resource Manager APIs in the project where service account is hosted.
-
On the GCP VM, under API and Identity Management > Cloud API access scopes, enable the Cloud SQL and Cloud Platform scopes.
-
Your Google account must contain the following permissions to access the Google resources:
Role
Title
Description
Permissions
Lowest Resource
roles/cloudsql.viewer
Cloud SQL Viewer
Provides read-only access of Cloud SQL resource.
cloudsql.backupRuns.get
cloudsql.backupRuns.list
cloudsql.databases.get
cloudsql.databases.list
cloudsql.instances.export
cloudsql.instances.get
cloudsql.instances.list
cloudsql.instances.listServerCas
cloudsql.sslCerts.get
cloudsql.sslCerts.list
cloudsql.users.list
resourcemanager.projects.get
resourcemanager.projects.list
serviceusage.quotas.get
serviceusage.services.get
serviceusage.services.list
Project
roles/alloydb.viewer
Cloud AlloyDB Viewer
Provides read-only access to Cloud AlloyDB all resources.
alloydb.clusters.list
alloydb.instances.list
resourcemanager.projects.get
Project
Procedure
-
From the Command Center navigation pane, go to Protect > Databases.
The Instances page appears.
-
Click Add instance, and then select Cloud database service.
The Add Cloud DB instance dialog box appears.
-
From the Select vendor list, select Google Cloud.
-
From the Database service list, select PostgreSQL or AlloyDB PostgreSQL.
-
From the Cloud account list, select an existing cloud account or create a new cloud account.
The cloud account is represented in Commvault as a hypervisor. For instructions to create a Google Cloud hypervisor, see Configuring Backups for Google Cloud.
-
In the Plan section, select a backup plan to use for the instance, and then click NEXT.
The Cloud Account page appears.
-
Beside the Cloud account list, click +.
The Add cloud account dialog box appears.
-
In the Name box, type the name for the account.
-
From the Credential list, select a saved credential or add a new Google account credential. To add a new credential, do the following:
-
From the Credential Vault list, select a credential vault.
-
In the Credential name box, enter a credential name for the Google cloud account.
-
Click Save.
-
-
From the Access node list, select access nodes that have both the Virtual Server and Cloud Apps packages installed.
Note
If you configure this cloud account to use managed identity authentication, select only Azure access nodes that use managed identity authentication so that backups and restores will be successful. The access node must be an Azure virtual machine in the same subscription that contains the Cosmos DB account that you want to back up.
-
Click SAVE.
-
Click NEXT.
The Instance details page appears.
-
From the Instance name list, select an instance.
-
Under the Connection details section, section, enter the following details:
-
From the Credential list, select a saved credential. You can also add a new credential.
-
In the Maintenance DB box, type the name of the system database that is used as the maintenance database.
-
In the Endpoint box, type the name of the endpoint to connect to the database instance.
-
-
In the Maintenance DB box, type the name of the system database that is used as the maintenance database.
-
In the Endpoint box, type the name of the endpoint to connect to the database instance.
-
Click NEXT.
The Backup Content page appears.
-
To filter the content that is backed up, click EDIT, select or clear the tables, and then click SAVE.
A summary page is displayed.
-
Review the summary, and then click FINISH.
Results
-
The new instance contains a dump-based backup set and a default subclient.
-
When you add an instance, a default database group is automatically created. The default database group includes all the data in the PostgreSQL database. You cannot delete the default database group.