Cloud Backup and Disaster Recovery
What is Cloud Backup?
Cloud backup involves copying and storing data on remote cloud servers, providing an offsite copy that protects against data loss from hardware failure, accidental deletion, or cyberattacks.
What is Disaster Recovery?
Disaster recovery refers to the strategies and tools used to restore IT systems and data after a disruptive event, such as a natural disaster or cyberattack, minimizing downtime and data loss.
Benefits of Cloud-Based DR
Cloud-based disaster recovery is more cost-effective than traditional on-premises solutions, offers faster recovery times, and allows businesses to test recovery plans without disrupting live systems, ensuring business continuity.
RPO, RTO and the 3-2-1 Rule
Two numbers drive every backup and recovery decision:
- Recovery Point Objective (RPO): how much data you can afford to lose, measured in time. If you back up once a night, you could lose up to a day of changes.
- Recovery Time Objective (RTO): how long the system may stay down before the business is seriously hurt.
An online shop might accept losing a few minutes of data but only a short outage, while an internal wiki can tolerate much more. Agree on these targets with the business first; the technology choices follow from them.
The classic 3-2-1 rule says keep at least three copies of data, on two different types of storage, with one copy offsite. In the cloud, "offsite" usually means a different region, and many teams add an immutable or air-gapped copy that ransomware cannot alter.
Four Common Recovery Strategies
| Strategy | How it works | Recovery speed | Running cost |
|---|---|---|---|
| Backup and restore | Copies stored in another region; systems rebuilt only after a disaster | Slowest | Lowest |
| Pilot light | Core pieces like the database replicate continuously; servers start only when needed | Moderate | Low |
| Warm standby | A smaller copy of the full system runs all the time and is scaled up on failover | Fast | Medium |
| Multi-site active-active | Two or more regions serve live traffic together | Near-instant | Highest |
Choose the cheapest strategy that still meets your RPO and RTO. Different applications in the same company often use different strategies.
Example: Protecting Files With Versioned Object Storage
On AWS, a simple starting point is a bucket with versioning turned on, so overwritten or deleted files can be recovered. The same idea exists on Azure Blob Storage and Google Cloud Storage.
# Turn on versioning for the backup bucket
aws s3api put-bucket-versioning --bucket my-company-backups \
--versioning-configuration Status=Enabled
# Copy local data to the bucket (only changed files are uploaded)
aws s3 sync /var/app/data s3://my-company-backups/app-data/
# List older versions of one file
aws s3api list-object-versions --bucket my-company-backups \
--prefix app-data/orders.csv
For stronger protection, add cross-region replication and object lock so that backups cannot be deleted, even by an administrator account that has been compromised.
Building and Testing a DR Plan
- List critical systems and set RPO and RTO for each.
- Map dependencies such as DNS, identity, secrets and third-party APIs.
- Pick a strategy and automate the rebuild with infrastructure-as-code templates.
- Write a runbook: who declares a disaster, who does what, and how users are informed.
- Run a recovery drill regularly and time it against your RTO.
Mistakes that cause failed recoveries
- Never restoring a backup until the day it is needed, then finding it corrupt or incomplete.
- Keeping backups in the same account and region as production.
- Assuming the cloud provider backs up your data. Under the shared responsibility model, protecting your data is usually your job.
- Forgetting SaaS data, configuration and encryption keys.
Ready to Master Cloud Computing?
Join Uncodemy's industry-recognized Cloud Computing Course and build in-demand cloud skills with expert mentors.
Explore Cloud Computing Course