Backup, Archive and Data Transfer on GCP: Backup and DR Service, Storage Transfer Service, Transfer Appliance and gcloud Tools
Backup Strategy Basics
- 3-2-1 rule: 3 copies, 2 different media or services, 1 off-site (another region or project)
- Back up data, configuration and code (infrastructure as code)
- Test restores. A backup you never restored is only a hope
- Keep backups in a separate project with limited access and retention locks
Built-in Backup Features
| Service | Backup feature |
|---|---|
| Compute Engine | Snapshots, machine images, snapshot schedules |
| Cloud SQL | Automated daily backups, point-in-time recovery, on-demand backups |
| Spanner / Bigtable / Firestore | Backups and point-in-time recovery or export |
| Cloud Storage | Versioning, soft delete, retention, replication |
| GKE | Backup for GKE |
| BigQuery | Time travel (up to 7 days) and table snapshots |
Backup and DR Service
- Central, managed service that protects VMs, databases (Oracle, SQL Server, SAP HANA and others), file systems and Cloud SQL
- Uses backup plans (schedule, retention) and vaults with immutable, indelible protection against ransomware
- Supports fast recovery to a new VM and disaster recovery testing
Moving Data Online
| Tool | Use |
|---|---|
gcloud storage cp / rsync | Small to medium transfers from your machine or server. Use --recursive and parallel composite uploads |
| Storage Transfer Service | Managed large transfers from AWS S3, Azure Blob, other clouds, HTTP lists and on-premises (with agents). Scheduled, with checks and bandwidth limits |
| BigQuery Data Transfer Service | Scheduled loads from SaaS apps, Google Ads, S3, Teradata and more |
| Database Migration Service | Databases with minimal downtime (later lesson) |
| Datastream | Change data capture into BigQuery or Cloud Storage |
bash
gcloud storage rsync /data/archive gs://acme-archive/ --recursive --delete-unmatched-destination-objects
gcloud transfer jobs create s3://source-bucket gs://acme-landing --source-creds-file=aws-creds.json --schedule-repeats-every=1d
Moving Data Offline: Transfer Appliance
- A physical device Google ships to you. You load data, ship it back and Google uploads it to Cloud Storage
- For tens of terabytes to petabytes where the network would take too long or is too costly
- Data is encrypted during the process
How Long Will It Take?
| Data size | 100 Mbps | 1 Gbps | 10 Gbps |
|---|---|---|---|
| 1 TB | about 1 day | about 2.5 hours | about 15 minutes |
| 100 TB | about 100 days | about 10 days | about 1 day |
| 1 PB | years | about 100 days | about 10 days |
These are rough estimates with full line use. Real speed is lower. When transfer takes more than about a week, consider an offline appliance.
Decision Table
| Situation | Choose |
|---|---|
| A few GB to low TB, good network | gcloud storage commands |
| Regular copy from S3 or another cloud | Storage Transfer Service |
| On-premises NAS to Cloud Storage on schedule | Storage Transfer Service with agents |
| Hundreds of TB with slow network | Transfer Appliance |
| Ongoing database replication | Datastream or Database Migration Service |
Practice
- Calculate transfer time for 50 TB on a 500 Mbps link
- Set a snapshot schedule and a Cloud SQL backup
- Create a Storage Transfer job from a public bucket to your bucket
- Write a restore test checklist for a database
Conclusion
Protect data with built-in backups and Backup and DR Service, following 3-2-1 and testing restores. Move data with gcloud, Storage Transfer Service or Transfer Appliance depending on size, time and network.
Quick Summary: strategy; built-in; Backup and DR; online; offline; time; decision.

