Before you begin
Before you begin deployment, use the following procedures to prepare:
Enable Backup and DR
Console
In the Google Cloud console, click
Menu.Select Operations > Backup and DR.
Click Enable. The Setup Backup and DR wizard opens.
In the Activate the management console section, complete the following:
Select the Location where you want to the management console to be located. This is the Google Cloud region, see Supported regions.
Select a VPC network.
If your project does not have a Private service connection set up, then a wizard opens to guide you through setting one up.
Click Continue.
In the Deploy your first backup/recovery appliance section, complete the following:
In Appliance name, enter a name for the appliance. The name must start with a lowercase letter and can contain up to 23 characters. The appliance name can only contain lowercase letters, numeric characters, and dashes (-). Spaces are not allowed.
Select the Target project where you want to deploy your backup/recovery appliance to.
Select the Region and Zone where you want your backup/recovery appliances to be located. This is the Google Cloud region and zone, see Supported regions.
Select Subnetwork. This is displayed based on the selected region and zone.
Select the Backup/recovery appliance type based on the workload that you want to back up.
Select a Storage type to store backups. This option is only displays if you select Basic for databases, VMware VMs, & other resources for the Backup/recovery appliance type.
Click Set up.
You are redirected to the status page. This can take about one hour to complete.
When the deployment is complete, click Log in to the management console and the management console will open in a new window.
If you want to deploy a second appliance, click Deploy another backup/recovery appliance.
gcloud
You can use Google Cloud CLI to create a management console. Creating backup/recovery appliances using gcloud CLI is not supported. You must use Google Cloud console to create backup/recovery appliances.
Use the following commands to create a management console.
Create a VPC network if you don't have one for Backup and DR Service:
gcloud compute networks create VPC_NETWORK --subnet-mode=auto
Replace the following:
VPC_NETWORK
: the name of your VPC network, for example,my-vpc-network
.
Configure private service access to establish communicate between management console and backup/recovery appliance:
gcloud compute addresses create RESERVED_RANGE_NAME\ --global \ --purpose=VPC_PEERING \ --prefix-length=23 \ --description="DESCRIPTION" \ --network=VPC_NETWORK
Replace the following:
RESERVED_RANGE_NAME
: a name for the allocated range, for example,my-allocated-range
.DESCRIPTION
: a description for the range, for example,peering range for Backup and DR
.VPC_NETWORK
: the name of your VPC network, for example,my-vpc-network
.
Create a private connection:
gcloud services vpc-peerings connect \ --service=servicenetworking.googleapis.com \ --ranges=RESERVED_RANGE_NAME \ --network=VPC_NETWORK
Replace the following:
RESERVED_RANGE_NAME
: the name of the allocated range, for example,my-allocated-range
.VPC_NETWORK
: the name of your VPC network, for example,my-vpc-network
.
Create a management console:
gcloud backup-dr management-servers create MANAGEMENT_SERVER_NAME \ --location=LOCATION_ID \ --network=projects/PROJECT_ID/global/networks/VPC_NETWORK
Replace the following:
MANAGEMENT_SERVER_NAME
: a name for the management console, for example,test name
. Once the management server is deployed, this name can't be changed. The name must be unique for a project and location.LOCATION_ID
: enter a management console supported location. Get the list of supported locations by usinggcloud backup-dr locations list
.PROJECT_ID
: the name of your project, for example,test-project
.VPC_NETWORK
: the name of your VPC network, for example,my-vpc-network
.
You can check the status of the operation:
gcloud backup-dr operations describe FULL_OPERATION_ID
Replace the following:
FULL_OPERATION_ID
: the operation ID that is displayed for the management console. It will be in the formatprojects/test-project/locations/us-central1/operations/operationID
The output is displayed as:
Create in progress for management server [projects/test-project/locations/us-central1/operations/test-operation] \ Run the [gcloud backup-dr operations describe] command to check the status of this operation.
Terraform
You can use the following Terraform resource links to deploy a management console and backup/recovery appliance:
Protect workloads
After enabling Backup and DR Service, you can start exploring the management console and protect workloads.
Use these instructions to protect Compute Engine instances:
Learn about Cloud credentials.
Assign required roles and permission.
Define a backup plan.
Protect databases and file systems within VMs
Ensure firewall rules are set.
Define a backup plan.