Deploy Backup and DR

Before you begin

Before you begin deployment, use the following procedures to prepare:

Enable Backup and DR

Console

  1. In the Google Cloud console, click Menu.

  2. Select Operations > Backup and DR.

  3. Click Enable. The Setup Backup and DR wizard opens.

  4. In the Activate the management console section, complete the following:

    1. Select the Location where you want to the management console to be located. This is the Google Cloud region, see Supported regions.

    2. Select a VPC network.

    3. If your project does not have a Private service connection set up, then a wizard opens to guide you through setting one up.

    4. Click Continue.

  5. In the Deploy your first backup/recovery appliance section, complete the following:

    1. 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.

    2. Select the Target project where you want to deploy your backup/recovery appliance to.

    3. 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.

    4. Select Subnetwork. This is displayed based on the selected region and zone.

    5. Select the Backup/recovery appliance type based on the workload that you want to back up.

    6. 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.

    7. Click Set up.

    You are redirected to the status page. This can take about one hour to complete.

  6. When the deployment is complete, click Log in to the management console and the management console will open in a new window.

  7. 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.

  1. Create a VPC network if you don't have one for Backup and DR Service:

      gcloud compute networks create VPC_NETWORK --subnet-mode=auto
    
    • VPC_NETWORK: the name of your VPC network, for example, my-vpc-network.
  2. 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.
  3. 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.
  4. Create a management console:

      gcloud backup-dr management-servers create MANAGEMENT_SERVER_NAME \
      --location=LOCATION_ID \
      --network=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 using gcloud backup-dr locations list.
    • VPC_NETWORK: the name of your VPC network, for example, my-vpc-network.
  5. 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 format projects/test-project/locations/us-central1/operation/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:

  1. Learn about Cloud credentials.

  2. Assign required roles and permission.

  3. Define a backup plan.

  4. Discover and protect Compute Engine instances

Protect databases and file systems within VMs

  1. Add your hosts and discover applications on your hosts.

  2. Install the Backup and DR agent on the hosts.

  3. Ensure firewall rules are set.

  4. Define a backup plan.

  5. Apply backup plan to the discovered applications