Skip to content
Documentation Background

Backups & Recovery

Data recovery is the process of restoring data after an unexpected event - hardware failure, accidental deletion, ransomware, natural disaster. The difference between a minor inconvenience and a business-ending catastrophe often comes down to one thing: did you have backups?


Before choosing tools, answer these questions:

  1. What data needs backing up? - emails, databases, financial records, server configs, user files
  2. How much total data? - and how fast is it growing?
  3. Where will backups be stored? - on-site, off-site, or both?
  4. How often? - daily? hourly? real-time replication?
  5. What’s your RTO and RPO?
MetricFull NameMeaning
RTORecovery Time ObjectiveHow long can you be down before it’s a crisis?
RPORecovery Point ObjectiveHow much data can you afford to lose? (measured in time)

Example: RTO = 4 hours means you need to be back online within 4 hours. RPO = 1 hour means your most recent backup must be no older than 1 hour.


TypeWhat It CopiesProsCons
FullEverything - all files, every timeSimple to restoreSlow, uses the most storage
DifferentialEverything changed since the last full backupFaster than full, one restore stepGrows larger over time
IncrementalOnly changes since the last backup (any type)Fastest, smallestRestore requires full + all incrementals in order

Backups can be compressed to save storage space, but there’s a trade-off:

  • Compressed backups take longer to restore (decompression step)
  • Some data types (video, images) don’t compress well since they’re already compressed

ApproachAdvantagesDisadvantages
On-site (NAS, local drives)Fast backup & restore, full controlVulnerable to fire, flood, theft - same physical risk as the originals
Off-site (cloud, remote DC)Protected from local disasters, accessible anywhereSlower transfers, ongoing cost, dependency on internet/provider

The Swiss army knife of Linux backups. Copies files efficiently, only transferring deltas (changed portions).

Terminal window
# Local backup
rsync -avz /home/user/ /backup/user-backup/
# Remote backup over SSH
rsync -avz -e ssh /home/user/ admin@backup-server:/backups/user/

Key features:

  • Supports compression (-z)
  • Transfers over SSH for security
  • Syncs between remote machines - great for automated cron jobs

Apple’s first-party backup solution:

  • Incremental model - backs up changes automatically every hour
  • Restore entire system or individual files
  • Restore older versions of files (versioned backups)

Two modes:

  • File-based: Backs up files to a zip archive - supports full and incremental
  • System image: Block-level disk copy - supports differential (backs up only changed blocks since last image)

For user devices and personal files:

  • Dropbox, Google Drive, iCloud, OneDrive - automatic file sync across devices
  • Easy for users, reduces IT workload for user data recovery
  • Particularly useful for remote/mobile workers whose devices aren’t always on corporate network

For long-term data that doesn’t need frequent access:

  • Data tapes - slower but much cheaper per GB than disk
  • Used for regulatory compliance, legal holds, historical archives

RAID (Redundant Array of Independent Disks) combines multiple drives for redundancy and/or performance:

LevelDescriptionBackup Replacement?
RAID 1Mirrored drives❌ No - mirrors corruption too
RAID 5Striped with parity❌ No - doesn’t protect against deletion or ransomware
RAID 10Mirror + stripe❌ No - same reasons

A backup you’ve never tested is a backup you don’t actually have.

  1. Data integrity - can files actually be opened and read after restore?
  2. Full restore process - can you rebuild a server from scratch using only the backup?
  3. Recovery time - does it meet your RTO?
  4. Documentation - is the recovery process documented clearly enough that someone else could do it?
  • Test backup restoration at least quarterly
  • Run a full disaster recovery simulation annually - involve different teams
  • After any major infrastructure change, verify backups still work

Don’t forget end users! Infrastructure backups won’t help if a user’s laptop dies and their files are only local.

Solutions:

  • Set up cloud sync (Google Drive, OneDrive) on all company devices
  • Educate users on where to store important files
  • Configure automatic backup policies on user machines