This page describes how to list and view data source details in the Google Cloud console.
Each data source in a backup vault identifies a specific resource. A data source can be a specific virtual machine or a specific database instance that is being backed up or has been backed up to the backup vault. Data sources are automatically created by the Backup and DR Service based on the backup plan you apply to the resource.
Data sources reflect the most recent state of the backed up resource, rather than the original values when the resource was first backed up. For example, if the amount of data associated with a Compute Engine VM changes between backups, the newest backup will update the data source to show the latest value, ensuring that the list of data sources remains current.
Before you begin
To get the permissions that you need to list and view data source details,
ask your administrator to grant you the
Backup and DR Backup Vault Viewer (roles/backupdr.backupvaultViewer
) IAM role on your backup vault project.
For more information about granting roles, see Manage access to projects, folders, and organizations.
This predefined role contains the permissions required to list and view data source details. To see the exact permissions that are required, expand the Required permissions section:
Required permissions
The following permissions are required to list and view data source details:
-
backupdr.bvdataSources.list
-
backupdr.bvdataSources.get
You might also be able to get these permissions with custom roles or other predefined roles.
List data sources
Use the following instructions to list data sources.
gcloud
List the data sources.
gcloud alpha backup-dr data-sources list \ --backup-vault=BACKUPVAULT_NAME \ --location=LOCATION \ --project=PROJECT_ID
Replace the following:
BACKUPVAULT_NAME
: the name of the backup vault.LOCATION
: the location of the backup vault.PROJECT_ID
: the name of the project where the backup vault is created.
View data source details
Use the following instructions to view the data source details.
gcloud
View the data source details.
gcloud alpha backup-dr data-sources describe DATA_SOURCE \ --backup-vault=BACKUPVAULT_NAME \ --location=LOCATION \ --project=PROJECT_ID
Replace the following:
DATA_SOURCE
: the ID of the data source you want to view details of.BACKUPVAULT_NAME
: the name of the backup vault.LOCATION
: the location of the backup vault.PROJECT_ID
: the name of the project where the backup vault is created.