Skip to content

Backup strategy 3-2-1 applied to cPanel — what each rule actually means

Apply the 3-2-1 backup rule to cPanel servers the strict way. See where the three copies should live, which storage pairs count as two media types, and how far away an off-site copy has to be.

The 3-2-1 backup rule asks for three copies of your data, on two different kinds of storage, with one copy kept off-site, and it is a sound starting point for anyone backing up cPanel servers. It only protects you if each part is read strictly. Three snapshots on the same disk count as one copy, an SSD and a hard drive in the same server are not two kinds of storage, and another rack in the same building is not off-site. Read strictly, each cPanel host needs its live data, a local backup on the same machine, and an off-site replica that a single fire, flood or ransomware attack cannot destroy along with the server.

The trade-off

A rule applied loosely gives false confidence. “Yes, we have 3-2-1” is meaningless if all three copies are on hardware behind one switch, or if the off-site copy hasn’t been tested for restore in a year.

How to verify — the strict reading

For each cPanel host, three copies must exist:

  1. Live production data — /home, MySQL, mail, DNS zones, configuration. This is copy 1.
  2. Local snapshot or local backup — JetBackup local destination, ZFS snapshot, LVM snapshot. Same physical box (or attached storage). Copy 2.
  3. Off-site replica — a different physical site, different IaaS region, or different provider entirely. Copy 3.

Two media types means two technically different storage paths. Both being “disk on Linux” doesn’t qualify. Acceptable pairs:

  • Local SSD + cloud object storage (S3, B2)
  • Local SSD + tape (LTO) — still done in some compliance shops
  • Local SSD + remote spinning-disk archive

One off-site means: cannot be destroyed by a single fire, flood, or ransomware event that destroys the primary. “Same rack, different server” doesn’t qualify. “Same datacenter, different rack” might qualify for fire but not for flood. “Different region of the same IaaS provider” qualifies for site-level events but not for IaaS-provider-level incidents (RGS in their billing system, broad outage).

What to do

  1. Inventory current backups against the strict reading. Most cPanel deployments fail at least one criterion.
  2. Add the missing layer. The most common gap is the off-site — solve by configuring JetBackup or rclone to push to B2/S3/another datacenter.
  3. Encrypt at rest at the off-site. Don’t ship plaintext to the cloud. See backup encryption keys management for the key handling.
  4. Test restore from each copy quarterly. Untested backups are claims, not protection.
  5. Document recovery objectives explicitly: RPO (how much data can you afford to lose), RTO (how fast must you be back). The 3-2-1 design should match these numbers.
  6. Append-only or immutable backup destinations are the answer to ransomware. Borg in append-only mode, S3 with Object Lock, or write-once tape. A backup that the same credentials can both write and delete is one ransomware step from useless.
  7. The off-site should be reachable by a different credential set than the production box. Compromise of production should not equal compromise of backups.

On a fleet of servers, the same design and restore tests apply to every server; see managed cPanel operations if you would rather hand that work off.