Enhanced Data Resilience for Compute Engine VMs with Cross-Region Backup and DR
Enhanced Data Resilience for Compute Engine VMs with Cross-Region Backup and DR
Enhanced Data Resilience for Compute Engine VMs with Cross-Region Backup and DR
Enhanced Data Resilience for Compute Engine VMs with Cross-Region Backup and DR
Enhanced Data Resilience for Compute Engine VMs with Cross-Region Backup and DR
Blog Summary
Data protection is a critical requirement for any workload running in the cloud — but a backup is only as strong as its independence from the very failure it's meant to protect against.
Blog Details
Data protection is a critical requirement for any workload running in the cloud — but a backup is only as strong as its independence from the very failure it's meant to protect against. If a backup lives in the same region as the production workload, a regional outage can take both down at once. Google Cloud's Backup and DR Service closes this gap by letting you store backups in a completely different region from your source VM, so your recovery point survives even a full regional failure.
In this walkthrough, we configure a Compute Engine VM in Mumbai (asia-south1) and protect it with a Backup Vault located in Singapore (asia-southeast1). We then run an on-demand backup and restore it to a brand-new VM to prove the data actually comes back intact — screenshots included at every step.
Why Cross-Region Backups Matter
Regional outages are a single point of failure: Backups stored in the same region as the source VM are exposed to the same regional outage, so a single event can wipe out both production and recovery copies.
True disaster recovery: Placing the Backup Vault in a different region gives you a genuine recovery point even if an entire region becomes unavailable.
Protection against deletion and ransomware: Backup Vaults can be locked with a minimum enforced retention period, protecting backups from accidental or malicious deletion — including from a compromised account.
Compliance-friendly: Many industries require backup copies to be geographically separated from primary data for audit and compliance purposes.
Safe recovery testing: Restoring to a new instance lets you validate recoverability without ever touching the original, production VM.
Solution Overview
The architecture is straightforward: the source VM stays in Mumbai, its backups are shipped to a vault in Singapore, and a restore operation can spin up a brand-new VM from that vault whenever it's needed.
Compute Engine VM (backup-demo-vm-cr, asia-south1 – Mumbai) → Backup Plan (cross-region-vm-backup-plan) → Backup Vault (cross-region-vault, asia-southeast1 – Singapore) → Restore→ New VM (backup-demo-vm-cr-restore)
The source VM and the Backup Vault sit in two different Google Cloud regions, which is what gives this setup its geographic separation between production data and backup data.
Step-by-Step Implementation
Step 1: Create the Compute Engine VM
We start by creating a Compute Engine VM named backup-demo-vm-cr, deployed in region asia-south1, zone asia-south1-a. It runs on an e2-micro machine type with a 10 GB Standard Persistent Disk, and we skip the external IP so the test workload stays internally accessible.
Machine configuration — name, region, and zone for the new VM
OS and storage configuration — Debian 12, 10 GB standard persistent disk
Networking configuration for the VM's network interface
The VM appears in the VM instances list, up and running
Test Data
To confirm later that data actually survives the backup-and-restore cycle, we SSH into the VM and create a small test file:
echo "Important cross-region backup test data" > backup-test.txt
Creating and verifying the test file over SSH on backup-demo-vm-cr
We'll use this same file to validate the restored VM later.
Step 2: Create the Cross-Region Backup Vault
Before creating a vault, make sure the Backup and DR Service API is enabled for the project.
Backup and DR Service API enabled on the project
Next, from the Backup and DR console, we create a new Backup Vault named cross-region-vault. This is where all backups for our VM will physically live.
Naming the new backup vault
The key decision here is location: we deliberately pick asia-southeast1 (Singapore) for the vault, even though the source VM lives in asia-south1 (Mumbai). This mismatch is exactly what establishes the cross-region backup configuration. We also set a minimum enforced retention period of 30 days, which prevents backups from being deleted or modified before that window ends.
Choosing the vault's region — asia-southeast1 (Singapore) — independent of the source VM's region
The vault is created and shows an Active status in Singapore
Step 3: Create the Backup Plan
With the vault in place, we create a Backup and DR backup plan named cross-region-vm-backup-plan for the Compute Engine resource type. The plan itself is located in asia-south1 (Mumbai) — the same region as the source VM — while it points to a vault in a different region.
Naming the backup plan and selecting Compute Engine as the resource type
The backup plan is created in Mumbai but stores backups in the cross-region-vault located in Singapore
We then define a backup rule called daily-backup: a daily recurrence, a backup window of 17:00–18:00 IST, and a 30-day retention period. All VM disks are included in the backup.
Configuring the daily-backup rule — recurrence, window, and retention
The finished backup rule set, alongside the plan's default rule
The new backup plan appears in the Backup plans list, pointing at cross-region-vault in Singapore
Step 4: Associate the VM with the Backup Plan
Next, we attach backup-demo-vm-cr to cross-region-vm-backup-plan. Once associated, the VM's details page confirms an Active backup schedule, with 1 of 1 disks protected and cross-region-vault listed as its backup vault.
The VM is now protected — backup schedule Active, backup vault set to cross-region-vault
Step 5: Perform an On-Demand Backup
Rather than waiting for the scheduled 17:00–18:00 IST window, we trigger an on-demand backup to test the configuration immediately.
Creating an on-demand backup, stored in cross-region-vault (asia-southeast1)
The backup completes with a size of 997.97 MiB and a status of Succeeded — confirming the VM backup was created successfully, while the source VM itself remains untouched in Mumbai.
Step 6: Verify the Cross-Region Backup
The Vaulted backups list shows backup-demo-vm-cr with a Succeeded status and its backup vault located in asia-southeast1 (Singapore) — clear, at-a-glance confirmation of the cross-region setup.
Vaulted backups list — backup-demo-vm-cr backed up to cross-region-vault in Singapore
Drilling into the backup details gives a full picture of the configuration:
Configuration
Value
Source VM
backup-demo-vm-cr
Source region
asia-south1 (Mumbai)
Backup plan
cross-region-vm-backup-plan
Backup vault
cross-region-vault
Vault region
asia-southeast1 (Singapore)
Backup type
On-demand
Backup size
997.97 MiB
Backup status
Succeeded
Retention
30 days
Backup details page — direct evidence the backup is stored in a region different from the source VM
Step 7: Perform a Restore Test
A backup is only useful if it can actually be restored, so we put it to the test. From the Vaulted backups list, we select the successful backup and choose Restore.
Initiating a restore from the Vaulted backups list
Cross-region restores need the Backup and DR service account to have the right IAM permissions on the destination project, so make sure a role like Backup and DR Compute Engine Operator (or equivalent) is granted before restoring.
Granting the Backup and DR service account the IAM roles it needs to restore Compute Engine instances
Instead of overwriting the original VM, we restore the backup as a brand-new Compute Engine instance named backup-demo-vm-cr-restore. This lets us validate recovery without putting the original workload at risk.
Step 8: Verify the Restore Job
The Backup and DR Jobs page confirms the restore operation completed cleanly: 1 total job, 1 successful, 0 failed, 0 running.
Jobs dashboard — the restore job completed successfully
Step 9: Validate the Recovered Data
The final and most important check: does the data actually come back? We SSH into the restored VM, backup-demo-vm-cr-restore, and read the test file:
cat backup-test.txt
The restored VM returns the exact same content written on the original VM
The restored VM returns “Important cross-region backup test data” — the same content we wrote on the original VM back in Step 1. This confirms end to end that data protected by a cross-region backup is fully recoverable, even after being restored into an entirely new instance.
Results
This implementation walks through the complete backup-and-recovery workflow, start to finish:
Source VM: backup-demo-vm-cr running in asia-south1 (Mumbai).
Backup plan: cross-region-vm-backup-plan, scheduled daily with a 30-day retention window.
Backup vault: cross-region-vault, located in asia-southeast1 (Singapore) — a different region from the source VM.
Backup: On-demand backup completed successfully at 997.97 MiB.
Restore: Restored as a new instance, backup-demo-vm-cr-restore, with the original test data fully intact.
The backup was created, stored in a geographically separate region, and successfully restored to a new VM — with the recovered instance containing the exact same test data as the source. That's the core promise of cross-region backups: your data survives even if an entire region doesn't.
Conclusion
Cross-region backups in Google Cloud Backup and DR Service are a simple but powerful way to raise the resilience bar for Compute Engine workloads. By separating the backup vault's region from the source VM's region, you protect your recovery point from the same regional failure that could take down production — and with retention locks in the vault, you get protection against accidental or malicious deletion too. Setting it up takes only a handful of steps: create a vault in a different region, build a backup plan around it, associate your VM, and you have geographically resilient backups running on autopilot — with the confidence that comes from having actually tested the restore.
Data protection is a critical requirement for any workload running in the cloud — but a backup is only as strong as its independence from the very failure it's meant to protect against. If a backup lives in the same region as the production workload, a regional outage can take both down at once. Google Cloud's Backup and DR Service closes this gap by letting you store backups in a completely different region from your source VM, so your recovery point survives even a full regional failure.
In this walkthrough, we configure a Compute Engine VM in Mumbai (asia-south1) and protect it with a Backup Vault located in Singapore (asia-southeast1). We then run an on-demand backup and restore it to a brand-new VM to prove the data actually comes back intact — screenshots included at every step.
Why Cross-Region Backups Matter
Regional outages are a single point of failure: Backups stored in the same region as the source VM are exposed to the same regional outage, so a single event can wipe out both production and recovery copies.
True disaster recovery: Placing the Backup Vault in a different region gives you a genuine recovery point even if an entire region becomes unavailable.
Protection against deletion and ransomware: Backup Vaults can be locked with a minimum enforced retention period, protecting backups from accidental or malicious deletion — including from a compromised account.
Compliance-friendly: Many industries require backup copies to be geographically separated from primary data for audit and compliance purposes.
Safe recovery testing: Restoring to a new instance lets you validate recoverability without ever touching the original, production VM.
Solution Overview
The architecture is straightforward: the source VM stays in Mumbai, its backups are shipped to a vault in Singapore, and a restore operation can spin up a brand-new VM from that vault whenever it's needed.
Compute Engine VM (backup-demo-vm-cr, asia-south1 – Mumbai) → Backup Plan (cross-region-vm-backup-plan) → Backup Vault (cross-region-vault, asia-southeast1 – Singapore) → Restore→ New VM (backup-demo-vm-cr-restore)
The source VM and the Backup Vault sit in two different Google Cloud regions, which is what gives this setup its geographic separation between production data and backup data.
Step-by-Step Implementation
Step 1: Create the Compute Engine VM
We start by creating a Compute Engine VM named backup-demo-vm-cr, deployed in region asia-south1, zone asia-south1-a. It runs on an e2-micro machine type with a 10 GB Standard Persistent Disk, and we skip the external IP so the test workload stays internally accessible.
Machine configuration — name, region, and zone for the new VM
OS and storage configuration — Debian 12, 10 GB standard persistent disk
Networking configuration for the VM's network interface
The VM appears in the VM instances list, up and running
Test Data
To confirm later that data actually survives the backup-and-restore cycle, we SSH into the VM and create a small test file:
echo "Important cross-region backup test data" > backup-test.txt
Creating and verifying the test file over SSH on backup-demo-vm-cr
We'll use this same file to validate the restored VM later.
Step 2: Create the Cross-Region Backup Vault
Before creating a vault, make sure the Backup and DR Service API is enabled for the project.
Backup and DR Service API enabled on the project
Next, from the Backup and DR console, we create a new Backup Vault named cross-region-vault. This is where all backups for our VM will physically live.
Naming the new backup vault
The key decision here is location: we deliberately pick asia-southeast1 (Singapore) for the vault, even though the source VM lives in asia-south1 (Mumbai). This mismatch is exactly what establishes the cross-region backup configuration. We also set a minimum enforced retention period of 30 days, which prevents backups from being deleted or modified before that window ends.
Choosing the vault's region — asia-southeast1 (Singapore) — independent of the source VM's region
The vault is created and shows an Active status in Singapore
Step 3: Create the Backup Plan
With the vault in place, we create a Backup and DR backup plan named cross-region-vm-backup-plan for the Compute Engine resource type. The plan itself is located in asia-south1 (Mumbai) — the same region as the source VM — while it points to a vault in a different region.
Naming the backup plan and selecting Compute Engine as the resource type
The backup plan is created in Mumbai but stores backups in the cross-region-vault located in Singapore
We then define a backup rule called daily-backup: a daily recurrence, a backup window of 17:00–18:00 IST, and a 30-day retention period. All VM disks are included in the backup.
Configuring the daily-backup rule — recurrence, window, and retention
The finished backup rule set, alongside the plan's default rule
The new backup plan appears in the Backup plans list, pointing at cross-region-vault in Singapore
Step 4: Associate the VM with the Backup Plan
Next, we attach backup-demo-vm-cr to cross-region-vm-backup-plan. Once associated, the VM's details page confirms an Active backup schedule, with 1 of 1 disks protected and cross-region-vault listed as its backup vault.
The VM is now protected — backup schedule Active, backup vault set to cross-region-vault
Step 5: Perform an On-Demand Backup
Rather than waiting for the scheduled 17:00–18:00 IST window, we trigger an on-demand backup to test the configuration immediately.
Creating an on-demand backup, stored in cross-region-vault (asia-southeast1)
The backup completes with a size of 997.97 MiB and a status of Succeeded — confirming the VM backup was created successfully, while the source VM itself remains untouched in Mumbai.
Step 6: Verify the Cross-Region Backup
The Vaulted backups list shows backup-demo-vm-cr with a Succeeded status and its backup vault located in asia-southeast1 (Singapore) — clear, at-a-glance confirmation of the cross-region setup.
Vaulted backups list — backup-demo-vm-cr backed up to cross-region-vault in Singapore
Drilling into the backup details gives a full picture of the configuration:
Configuration
Value
Source VM
backup-demo-vm-cr
Source region
asia-south1 (Mumbai)
Backup plan
cross-region-vm-backup-plan
Backup vault
cross-region-vault
Vault region
asia-southeast1 (Singapore)
Backup type
On-demand
Backup size
997.97 MiB
Backup status
Succeeded
Retention
30 days
Backup details page — direct evidence the backup is stored in a region different from the source VM
Step 7: Perform a Restore Test
A backup is only useful if it can actually be restored, so we put it to the test. From the Vaulted backups list, we select the successful backup and choose Restore.
Initiating a restore from the Vaulted backups list
Cross-region restores need the Backup and DR service account to have the right IAM permissions on the destination project, so make sure a role like Backup and DR Compute Engine Operator (or equivalent) is granted before restoring.
Granting the Backup and DR service account the IAM roles it needs to restore Compute Engine instances
Instead of overwriting the original VM, we restore the backup as a brand-new Compute Engine instance named backup-demo-vm-cr-restore. This lets us validate recovery without putting the original workload at risk.
Step 8: Verify the Restore Job
The Backup and DR Jobs page confirms the restore operation completed cleanly: 1 total job, 1 successful, 0 failed, 0 running.
Jobs dashboard — the restore job completed successfully
Step 9: Validate the Recovered Data
The final and most important check: does the data actually come back? We SSH into the restored VM, backup-demo-vm-cr-restore, and read the test file:
cat backup-test.txt
The restored VM returns the exact same content written on the original VM
The restored VM returns “Important cross-region backup test data” — the same content we wrote on the original VM back in Step 1. This confirms end to end that data protected by a cross-region backup is fully recoverable, even after being restored into an entirely new instance.
Results
This implementation walks through the complete backup-and-recovery workflow, start to finish:
Source VM: backup-demo-vm-cr running in asia-south1 (Mumbai).
Backup plan: cross-region-vm-backup-plan, scheduled daily with a 30-day retention window.
Backup vault: cross-region-vault, located in asia-southeast1 (Singapore) — a different region from the source VM.
Backup: On-demand backup completed successfully at 997.97 MiB.
Restore: Restored as a new instance, backup-demo-vm-cr-restore, with the original test data fully intact.
The backup was created, stored in a geographically separate region, and successfully restored to a new VM — with the recovered instance containing the exact same test data as the source. That's the core promise of cross-region backups: your data survives even if an entire region doesn't.
Conclusion
Cross-region backups in Google Cloud Backup and DR Service are a simple but powerful way to raise the resilience bar for Compute Engine workloads. By separating the backup vault's region from the source VM's region, you protect your recovery point from the same regional failure that could take down production — and with retention locks in the vault, you get protection against accidental or malicious deletion too. Setting it up takes only a handful of steps: create a vault in a different region, build a backup plan around it, associate your VM, and you have geographically resilient backups running on autopilot — with the confidence that comes from having actually tested the restore.