跳到主要内容
不要错过新客户专属 20% 折扣优惠! 优惠码: KAVESNET20 已复制
Backup

The 3-2-1 Backup Rule: How to Never Lose Server Data

The 3-2-1 backup rule is the gold standard for server backup strategy. We cover the rule, automation, and KavesNET's backup infrastructure.

KavesNET Team 2026年4月23日 5 分钟阅读
Server backup image

Servers crash. Disks fail. A wrong command gets typed. Ransomware lands. None of these is zero-probability — the question is when. The right question about your server isn’t “should I take backups?” but “with what strategy?” This post covers the 3-2-1 backup rule — the corporate-world gold standard — and how to apply it.

What is 3-2-1?

The 3-2-1 rule is a backup strategy endorsed by US-CERT and used as the foundational reference by millions of organisations worldwide. The three numbers stand for:

  • 3: Keep 3 copies total — original + 2 backups
  • 2: On 2 different media types (e.g., SSD + HDD, or disk + cloud object storage)
  • 1: Keep at least 1 copy off-site (different physical location)

The logic is simple: data centralised in one place is wiped out by a single failure. 3-2-1 builds resilience against every loss scenario.

Why is it this critical?

ThreatWithout 3-2-1With 3-2-1
Disk failureAll data goneRestore from another copy
RansomwareEncrypted, you payRestore from off-site backup
Human error (wrong DROP TABLE)Data wipedRestore from earlier snapshot
Data centre fireEverything’s overRestore from off-site location
Hosting bankruptcyService cutLocal copy still intact

According to a 2024 IBM report, the average data breach cost is $4.88M. Most businesses don’t survive — 60% of companies that lose data without backups close within 6 months.

How do you apply 3-2-1 in practice?

Scenario: a WordPress + MySQL e-commerce site

Copy 1 — live server (the original)

  • WordPress files + MySQL DB on the server’s NVMe SSD
  • This is not a backup — it’s the working copy

Copy 2 — same server, separate disk / RAID

  • Disk-level mirror with RAID 1 or RAID 10
  • Instant failover on disk failure
  • Nightly automatic snapshot

Copy 3 — off-site (different location, different medium)

  • Cloud object storage (Backblaze B2, AWS S3, Wasabi)
  • Or a backup server in another data centre
  • Encrypted transfer (rsync over SSH, restic, or borgbackup)
  • Weekly full + daily incremental

Backup automation — a simple cron example

A minimal backup script for WordPress + MySQL:

#!/bin/bash
DATE=$(date +%Y-%m-%d)
BACKUP_DIR="/backup"
DB_NAME="wordpress"
DB_USER="root"
SITE_DIR="/var/www/html"
REMOTE="user@backup-server:/backups/wp/"

# 1. DB dump
mysqldump -u $DB_USER --single-transaction $DB_NAME | gzip > $BACKUP_DIR/db-$DATE.sql.gz

# 2. File backup (incremental tar)
tar --listed-incremental=$BACKUP_DIR/snapshot.snar -czf $BACKUP_DIR/files-$DATE.tar.gz $SITE_DIR

# 3. Off-site sync (encrypted rsync)
rsync -az --delete $BACKUP_DIR/ $REMOTE

# 4. Delete backups older than 30 days
find $BACKUP_DIR -name "*.gz" -mtime +30 -delete

Run it nightly at 03:00 via /etc/cron.d/backup:

0 3 * * * root /usr/local/bin/backup.sh >> /var/log/backup.log 2>&1

Production tools

In production environments, enterprise tools beat ad-hoc scripts:

  • Veeam Backup — industry standard, what KavesNET uses
  • restic — open source, deduplication + encryption built-in
  • BorgBackup — incremental, encrypted, deduplicated
  • Duplicati — user-friendly, GUI

The most critical step: restore testing

A backup you can’t restore is worth zero. This is the most-skipped step in 3-2-1.

  • Restore the backup to a test environment monthly
  • Measure restore time (RTO — Recovery Time Objective)
  • Verify data integrity

An untested backup is a myth. The number of people in production saying “we had backups” but “couldn’t restore” is no smaller than those with no backups at all.

KavesNET’s backup infrastructure

KavesNET servers include as standard, free:

  • RAID10 — instant disk-level protection
  • Daily automatic backups via Veeam to external backup servers
  • 7-day retention
  • One-click restore via support ticket
  • Backup servers on a separate network with redundant 10 Gbps links

This handles points 2 and 3 of 3-2-1 out of the box. For S3-compatible off-site cloud backups, get in touch.

Common backup mistakes

  1. Backups on the same disk — disk dies, backups die with it
  2. Manual-only backups — gets forgotten; the latest one is 6 months old
  3. Unencrypted transfer — backup server hacked = all data exposed
  4. Skipping restore tests — fails on the day that matters
  5. Excessive retention — wasted storage; rotate 7-30-90 days
  6. Backing up only the database — uploads/, .htaccess, config files forgotten

Conclusion

3-2-1 backup isn’t a technical preference — it’s a business continuity necessity. The companies that lose data and shut down aren’t the ones who heard about the rule, but the ones who didn’t apply it.

Audit today:

  • How many copies do you have? (Should be 3)
  • On how many different media? (Should be 2)
  • Do you have an off-site copy? (Should be 1)
  • When did you last restore-test? (Shouldn’t exceed 1 month)

KavesNET servers already cover two legs of 3-2-1 with RAID10 + daily Veeam backup + external backup servers. Browse server plans → or contact us for off-site backup architecture.

Related: VDS vs VPS Difference · WordPress Hosting Guide

标签 Backup Security DevOps Server

相关 文章

您可能也喜欢这些。