All guides
Home Glossary Backup
Term

Backup

A copy of data stored on a separate medium used to restore information in case of loss, damage, or system failure.

A backup is a copy of data stored on a separate medium to restore information in case of data loss, hardware failure, software corruption, or human error. Unlike an archive, which holds inactive data for long-term compliance or historical retention, a backup is built for the rapid recovery of active production environments. In hosting and DevOps workflows, reliable backups act as the final safety net when high-availability systems and replication fail.

How it works

Backup systems copy target files, database dumps, or entire virtual machine disk images to isolated targets such as external volumes, object storage buckets, or tape libraries. Rather than transferring everything every time, modern tools use three primary capture strategies to balance storage consumption and recovery speed:

  • Full backup: Copies the entire selected dataset from scratch. It provides the fastest single-step restoration but requires the most storage space and network bandwidth.
  • Incremental backup: Captures only the data blocks or files modified since the most recent backup of any type. It minimizes transfer time and storage footprint, though restoring requires the last full backup plus every subsequent incremental chain.
  • Differential backup: Saves all changes made since the last full backup. It grows larger over time than an incremental backup but simplifies restoration because you only need the latest full copy and the most recent differential archive.

Two core metrics dictate backup scheduling: Recovery Point Objective (RPO) defines the maximum acceptable amount of data loss measured in time (for example, hourly backups equal a one-hour RPO), while Recovery Time Objective (RTO) sets the target duration for restoring services after an outage. To eliminate single points of failure, engineers follow the 3-2-1 backup strategy: keep at least three copies of your data, across two different storage media, with one copy stored off-site.

Example

For live relational databases like PostgreSQL or MySQL, copying raw data files directly from disk often yields corrupted archives due to active write locks. Instead, administrators export a consistent logical dump and push it to encrypted off-site storage:

# Create a compressed logical dump of a PostgreSQL database
pg_dump -U app_user -Fc production_db > /tmp/prod_$(date +%F).dump

# Push the encrypted snapshot to an off-site repository using Restic
restic -r s3:https://s3.example.com/prod-backups backup /tmp/prod_$(date +%F).dump

Tools like Restic and Borg deduplicate data blocks across runs and encrypt archives client-side before the data leaves your server. For a closer look at how these engines handle deduplication overhead and repository locking, see our comparison of Restic vs Borg.

What matters when choosing a server or hosting

When evaluating a VPS or dedicated server provider, look closely at how automated snapshots and off-site transfers are handled:

  • Storage isolation: Ensure provider-managed snapshots live on a physically separate storage cluster rather than the same local NVMe array hosting your virtual machine.
  • Egress bandwidth and I/O limits: Frequent off-site transfers can saturate disk I/O or trigger outbound bandwidth overages if your host meters internal and external traffic together.
  • API and S3-compatible access: Native support for private networking to object storage keeps backups fast, automated, and independent of vendor lock-in.

Reviewing your VPS backup configuration early helps align storage tiers with your actual RTO targets.

Common mistakes

  • Relying on RAID as a backup: Disk mirroring protects against drive failure, not accidental DROP TABLE commands, ransomware, or filesystem corruption, which replicate instantly across all disks.
  • Skipping restore drills: An untested backup is an unknown quantity; silent bit rot, expired encryption keys, or missing database permissions often surface only during an emergency.
  • Storing backups on the same server: Keeping archives in a local /backups directory leaves them vulnerable to host compromise, disk exhaustion, or provider hardware failure.

FAQ

How is a backup different from a snapshot?

A snapshot captures the point-in-time state of a volume or filesystem, typically residing on the same storage pool for quick rollbacks before software updates. A backup is an independent, self-contained copy transferred to separate infrastructure so it survives total host loss.

How often should I run backups?

Match your schedule to your RPO and rate of data change. Static websites may only need weekly backups, whereas transactional databases usually require daily full dumps paired with continuous write-ahead log (WAL) archiving.

Should I encrypt my backups?

Yes. Always encrypt backups on the client side before transmitting them off-site, ensuring that unauthorized access to your storage bucket or tape archive does not expose sensitive customer records or application secrets.

All glossary terms

Glossary

Related terms

Full glossary

New guides every week.

A digest of the best pieces on servers, VPN and self-hosted software. No ads, no spam.

1 email a weekOne-click unsubscribeRU · EN
Only slipjar.app articles, nothing else.