0Pricing
Cloud & IT Cert Prep · Lesson

Backup Strategies: 3-2-1 Rule and Immutable Backups

Implement the 3-2-1 backup rule (3 copies, 2 media types, 1 offsite) and immutable backups that ransomware cannot encrypt or delete.

Backup Strategies: 3-2-1 Rule and Immutable Backups is a free Cloud & IT Cert Prep lesson on CoddyKit — lesson 3 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the Cloud & IT Cert Prep learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.

Why Backups Are a Security Control

Backups are not just an IT operational concern — they are a critical security control that directly enables recovery from ransomware, accidental deletion, hardware failure, and insider sabotage. Without tested, reliable backups, ransomware operators hold all the power: pay or lose your data. With robust, protected backups, organizations can recover without paying ransom. The Security+ exam explicitly includes backup strategy as part of business continuity and data protection requirements.

The 3-2-1 Backup Rule

The 3-2-1 backup rule is the industry-standard baseline for backup resilience. 3 copies of data must exist (original + 2 backups). 2 different storage media types must be used (e.g., local disk and tape, or local NAS and cloud). 1 copy must be stored offsite or in a geographically separate location. This configuration ensures that no single failure — disk failure, site disaster, theft — eliminates all copies of the data. The 3-2-1 rule has been the backup gold standard for two decades.

# 3-2-1 backup rule example:
# Copy 1 (primary): Production database server
#   Location: Primary data center, local SSD

# Copy 2 (local backup): Backup appliance
#   Media: Network-attached storage (different media type)
#   Location: Same data center (different failure domain)

# Copy 3 (offsite backup): Cloud storage
#   Media: Cloud object storage (S3, Azure Blob)
#   Location: Different geographic region (offsite)

# Single failure scenarios that DON'T lose all copies:
# - Production disk fails -> 2 copies remain
# - Data center flood -> offsite cloud copy survives
# - Local NAS failure -> production + cloud remain

The 3-2-1-1-0 Rule: Enhanced for Ransomware

Ransomware has exposed weaknesses in classic 3-2-1: if all three copies are network-accessible, ransomware encrypts them all. The enhanced 3-2-1-1-0 rule adds: one copy must be offline or air-gapped (disconnected from the network, physically isolated), and zero backup errors (all backups must be tested with zero failures in restore tests). The offline copy ensures that ransomware — even with domain admin access — cannot reach and encrypt all backup copies.

# 3-2-1-1-0 extended backup rule:
# 3 copies of data
# 2 different media types
# 1 offsite copy
# 1 OFFLINE or air-gapped copy (new addition)
# 0 backup errors - all restores tested successfully

# Offline copy options:
# - Tape backups stored in a separate secured location
# - Detached USB/NAS drives (connected only during backup window)
# - Cloud backup with immutable storage (logically air-gapped)
# - Object lock with object versioning and delete protection

# Ransomware scenario: encrypts online storage
# -> Offline/immutable copy is intact -> restore succeeds

Immutable Backups: Ransomware-Proof Storage

Immutable backups are stored in a way that makes them impossible to modify or delete for a specified retention period — even by administrators with full access. Cloud providers implement immutability through object lock (WORM — Write Once, Read Many) policies. AWS S3 Object Lock, Azure Blob immutable storage, and similar features prevent any API call from deleting or overwriting objects before the lock period expires. Ransomware groups that gain domain admin access cannot delete immutable backups, even with the highest level of cloud credentials.

# AWS S3 Object Lock configuration:
# Bucket: company-backups-immutable
# Object Lock: ENABLED (must be set at bucket creation)

# Retention mode options:
# GOVERNANCE mode: admins CAN override with special permission
# COMPLIANCE mode: NO ONE can delete or override (even root)

# Apply retention to backup objects:
# aws s3api put-object-retention \
#   --bucket company-backups-immutable \
#   --key db-backup-2026-06-20.tar.gz \
#   --retention '{"Mode":"COMPLIANCE","RetainUntilDate":"2026-09-20T00:00:00Z"}'

# Ransomware operator (even with AWS keys) cannot delete this
# object before 2026-09-20.

Backup Types: Full, Incremental, and Differential

Three backup types balance completeness against storage cost and backup window time. A full backup copies all data every time — provides the fastest restore but consumes the most storage. An incremental backup copies only data changed since the last backup of any type — fastest to create, smallest storage, but restore requires the last full plus all incrementals. A differential backup copies all data changed since the last full backup — medium storage growth, restore requires only the last full plus the latest differential.

# Backup schedule comparison:
# Full backup only:
# Mon: Full (100GB)  Tue: Full (100GB)  ...  Sun: Full (100GB)
# Total storage/week: 700GB | Restore: 1 file

# Full + Daily Incremental:
# Mon: Full (100GB)  Tue: Inc (5GB)  Wed: Inc (5GB) ...
# Total storage/week: ~130GB | Restore: Full + all Incrementals

# Full + Daily Differential:
# Mon: Full (100GB)  Tue: Diff (5GB)  Wed: Diff (10GB) ...
# Total storage/week: ~200GB | Restore: Full + latest Diff only

Backup Encryption and Key Management

Backup files must be encrypted — backup tapes sent to offsite storage or cloud backups are a target for attackers seeking sensitive data. Use AES-256 encryption for backup data at rest. Critically, backup encryption keys must be stored separately from the backups themselves: encrypting backups with a key that is also backed up in the same location defeats the purpose. Store encryption keys in a Hardware Security Module (HSM) or key management service that is independent from the backup system.

Backup Isolation and Segmentation

Backup systems must be isolated from the production network. If backup servers are domain-joined with the same Active Directory as production servers, ransomware with domain admin credentials can reach and encrypt backup storage. Best practices: backup servers on a separate network segment with no access from production servers, use dedicated backup credentials that are not domain admin accounts, implement backup server MFA for administrative access, and consider a separate backup domain that has no trust relationship with the production domain.

Cloud Backup Services

Cloud backup services provide offsite storage with immutability options and simplify the 3-2-1 rule implementation. AWS Backup, Azure Backup, and Google Cloud Backup and DR integrate with cloud services and provide centralized policy management. Third-party services like Veeam, Rubrik, and Cohesity offer cloud-native backup with immutable repositories, air-gapped vault copies, and ransomware detection that analyzes backup data for encryption entropy anomalies — alerting before a full ransomware event completes.

Testing Backups: The Critical Missing Step

Many organizations discover during a ransomware incident that their backups are corrupted or unrestorable — a catastrophic discovery at the worst possible moment. Backup testing must be a scheduled, regular activity. Testing approaches include: automated restore verification (restore a sample of files daily and verify checksums), periodic full restores to isolated test environment (quarterly database restore and application startup test), and DR drills where the team follows the DRP from backup to running production on alternate infrastructure. Document every test result.

# Automated backup verification (conceptual):
# Daily: randomly select 10 backup files
# Restore each to temp location
# Verify SHA-256 checksum matches original
# Log: timestamp, file name, status (PASS/FAIL)
# Alert: if any file FAILS verification -> investigate immediately

# Monthly: restore last week's full database backup
# Spin up application in isolated test environment
# Run smoke tests: can users log in? Is data current?
# Log: restore time (compare vs RTO), data age (compare vs RPO)
# Alert: if restore exceeds RTO -> escalate DR infrastructure review

Grandfather-Father-Son (GFS) Retention

The Grandfather-Father-Son (GFS) retention scheme organizes backup retention across different time horizons. Son backups are daily (kept for 1 week, then overwritten). Father backups are weekly full backups (kept for 1 month). Grandfather backups are monthly full backups (kept for 1 year or longer). GFS provides the ability to restore from yesterday, last week, or last month — balancing recovery flexibility against storage cost. Many compliance frameworks require GFS-style retention for audit trail purposes.

Backup Monitoring and Alerting

Backup failures are silent disasters — a backup job that silently fails for weeks means no protection exists when it is needed most. Backup monitoring must track: whether each scheduled backup job completed successfully, whether the backup size is within expected range (a suspiciously small backup may indicate a partial failure), whether backup encryption key access was successful, and whether the backup transferred to all required destinations (local + offsite). Alerts should fire immediately on any failed job, with escalation if failures persist beyond a single attempt. Treat a failed backup as a Priority 2 incident.

# Backup monitoring alert conditions:
# Alert: CRITICAL if backup job has not started by scheduled time + 30 min
# Alert: HIGH    if backup job fails with non-zero exit code
# Alert: HIGH    if backup size < 80% of previous backup (partial failure?)
# Alert: MEDIUM  if backup did not replicate to offsite destination
# Alert: MEDIUM  if backup encryption verification failed
# Alert: INFO    if backup completed successfully (daily digest)

# Backup dashboard metrics to review weekly:
# - Jobs succeeded vs failed (7-day trend)
# - Average backup duration (performance trend)
# - Storage consumption (capacity planning)
# - Last successful restore test date

Quick Check

Test your understanding of CompTIA Security+ (SY0-701) concepts from this lesson.

Lesson Recap

In this lesson you learned: the 3-2-1 rule requires 3 copies on 2 media types with 1 offsite, the enhanced 3-2-1-1-0 rule adds an offline/immutable copy and requires zero restore failures, and immutable/WORM storage prevents ransomware from destroying backups even with full administrative credentials. Next up we explore failover testing through tabletop exercises and DR drills to validate that recovery plans work in practice.

Frequently asked questions

Is the “Backup Strategies: 3-2-1 Rule and Immutable Backups” lesson free?

Yes — the full text of “Backup Strategies: 3-2-1 Rule and Immutable Backups” is free to read here on the web, and the Cloud & IT Cert Prep course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the Cloud & IT Cert Prep course, upgrade to CoddyKit PRO.

What will I learn in “Backup Strategies: 3-2-1 Rule and Immutable Backups”?

Implement the 3-2-1 backup rule (3 copies, 2 media types, 1 offsite) and immutable backups that ransomware cannot encrypt or delete. You practise Cloud & IT Cert Prep with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.

Do I need any experience to start Cloud & IT Cert Prep?

No prior experience is required. Cloud & IT Cert Prep on CoddyKit is structured for beginners through advanced learners; this is — lesson 3 of 4, so you can start here or from the beginning and move at your own pace.

How long does the “Backup Strategies: 3-2-1 Rule and Immutable Backups” lesson take?

Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.

Can I write and run code in this Cloud & IT Cert Prep lesson?

Yes. Every Cloud & IT Cert Prep lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.

All lessons in this course

  1. BCP vs DRP: Planning for Disruption and Recovery
  2. RTO, RPO, and MTTR: Defining Recovery Objectives
  3. Backup Strategies: 3-2-1 Rule and Immutable Backups
  4. Failover Testing: Tabletop Exercises and DR Drills
← Back to Cloud & IT Cert Prep