What is data backup?

A backup is a copy of data kept apart from the original so it can be restored after deletion, corruption, attack or hardware loss. Its value is measured only by restores.

What should a backup protect against?

Everything that can damage the live copy: accidental deletion, a buggy release that corrupts records, ransomware, an attacker with root access, a failed server and a lost data centre. Each threat reaches different places. RAID and replicas guard only against hardware, because they mirror every other kind of damage instantly. A backup has to be separated in time (older versions), in place (another machine and location) and in access (credentials the production server does not hold).

What are the main backup methods?

MethodHow it worksTrade-off
FullCopies everything each timeSimple restore, slow and large
IncrementalCopies changes since the last backup of any kindSmall and fast, restore needs the chain
DifferentialCopies changes since the last full backupMiddle ground in size and restore effort
Deduplicated snapshotsStores unique chunks once, each snapshot looks completeEfficient and flexible, needs a capable tool
File system snapshotsZFS or Btrfs point-in-time copies, sent elsewhereVery fast, ties you to one file system

Modern tools such as restic, BorgBackup and Kopia use deduplicated snapshots: every run is incremental in cost, yet each snapshot restores as a full copy.

What is the 3-2-1 rule?

Keep three copies of data, on two different kinds of storage or systems, with one copy off-site. A common update adds a final "1-0": one copy offline or immutable, and zero errors in restore tests. For a rented server, that might mean the live data, a nightly backup to a second server in another data centre, and a weekly copy to an independent location or offline media you control.

How do databases differ from files?

Copying a running database's files gives an inconsistent mess. Use the engine's own tools: logical dumps for portability, physical hot backups for speed, plus the write-ahead or binary log for point-in-time recovery. For PostgreSQL, pgBackRest handles all three; for MySQL and MariaDB, XtraBackup or mariadb-backup with binary logs. Our Ship database dumps to a second server guide shows a working schedule.

How do I set up a backup that ransomware cannot delete?

Make the production server unable to remove old backups. Pull backups from a separate server rather than pushing from production, or use an append-only mode where the client can add data but not delete it. With BorgBackup over SSH, a forced command on the backup server limits the client key:

# on the backup server, ~borg/.ssh/authorized_keys (one line)
command="borg serve --append-only --restrict-to-path /srv/borg/web01",restrict ssh-ed25519 AAAAC3Nz...web01
# on the production server
borg create --stats --compression zstd,6 ssh://borg@203.0.113.60/srv/borg/web01::'{hostname}-{now:%Y-%m-%dT%H%M}' /etc /srv /var/backups/db

Pruning then runs on the backup server itself, with its own key, on a schedule.

Should backups be encrypted?

Yes, whenever they leave the machine they came from. restic, Borg and Kopia encrypt client-side with keys only you hold. Store the key or passphrase somewhere other than the backed-up server, such as a password manager and a sealed paper copy, because a backup you cannot decrypt is the same as no backup. Encryption also protects data on drives the data centre later replaces and destroys.

What retention schedule makes sense?

Long enough to catch slow problems, short enough to respect data protection rules. A widely used schedule keeps 14 daily, 8 weekly and 12 monthly snapshots; silent corruption or a deleted folder noticed weeks later is still recoverable. Personal data may need shorter retention or a documented erasure process. Deduplication keeps long schedules affordable because unchanged data is stored once.

Where do the copies live on rented hardware?

On another server you rent. We do not sell a separate backup storage product, so the usual setup is a Storage line machine in a different data centre: STORAGE-1 offers 2x 480 GB SSD SATA (system) + 4x 14 TB HDD SAS, Soft RAID for $109.80 a month, enough for many servers' worth of deduplicated history. Its unmetered port in Europe and Canada means nightly transfers cost nothing extra. Our Backup and archive storage page has sizing examples.

How do I know backups work?

Restore them, on a schedule. Monitor that each job ran and finished, run the tool's integrity check weekly (restic check --read-data-subset=5% or borg check), and restore a real database or directory into a scratch location every month. Time a full restore twice a year so you know your actual recovery time. Our Data backup and recovery article covers restore planning in more detail.

Storage machines for backup copies

ModelProcessorCoresMemoryDrivesPortPer month
STORAGE-1AMD Ryzen 7 Pro 3700832 GB2x 480 GB SSD SATA + 4x 14 TB HDD SAS1 Gbps unmetered$109.80
STORAGE-2 2024AMD EPYC 4344P832 GB2x 960 GB SSD NVMe + 2x 22 TB HDD SAS3 Gbps unmetered$187.80
STORAGE-2 2026AMD EPYC 4345P832 GB2x 960 GB SSD NVMe + 2x 24 TB HDD SAS3 Gbps unmetered$273.00
STORAGE-3 2024Intel Xeon Gold 6554S36128 GB2x 960 GB SSD NVMe + 24x 22 TB HDD SAS10 Gbps unmetered$1,037.40

Related pages

Data backup and recovery

What a backup is and is not, the 3-2-1 rule for rented servers, file and database methods, retention, encryption and proving that a restore works.

Read more

Backup and archive storage

Hard disk chassis from 44 TB to 576 TB raw for offsite backups, archives and object storage targets.

Read more

Ship database dumps to a second server

Schedule compressed, encrypted MariaDB or PostgreSQL dumps and send them to a Storage machine elsewhere, with retention and restore tests.

Read more

Ransomware and servers

How ransomware reaches servers, why it now steals data before encrypting, the backup design that survives it and a response plan for the first hours.

Read more

Questions and answers

Is RAID a backup?

No. RAID keeps a server running when a disk fails but mirrors deletions, corruption and encryption by ransomware instantly. Backups are separate, versioned copies.

How does the 3-2-1 approach to copies work?

Three copies of data, on two different systems or media, with one copy off-site. Many add one offline or immutable copy and zero restore errors.

Do you sell backup storage?

We have no separate backup storage product. Rent a second server, for example from the Storage line, in another data centre to hold your backups.

Can ransomware on the server reach my backups?

Not if you pull backups from a separate server or use append-only access, so the production server cannot delete or overwrite old copies.

How often should restores be tested?

A partial restore monthly and a full, timed restore at least twice a year, plus automated integrity checks weekly.