Documentation
Backups & Restore
What gets backed up, how far back you can go, and what to do — and not do — when you need something restored.
Backup frequency and retention depend on your plan and are confirmed during onboarding. This page explains the concepts and the request process; it deliberately does not state a frequency, a retention period, or a restore turnaround, because those are not the same for every account. Every such value below appears as a placeholder — fill it in from your own onboarding documentation, or ask support to confirm it in writing.
What needs backing up
The useful question is not "is the server backed up" but "if this disk vanished right now, what could not be recreated". Work through the list:
| Category | Examples | Recoverable without a backup? |
|---|---|---|
| Application data | Database contents, queues, caches with authoritative data in them | No. This is the priority. |
| User-generated files | Uploads, attachments, generated documents, media | No — and frequently missed, because they are not in the database and not in the repository. |
| Configuration | Environment files, web server config, systemd units, cron jobs | Only if it is in version control. Usually it partly is not. |
| Secrets | API keys, database passwords, signing keys | Sometimes reissuable, sometimes not. Keep them in a password manager independently of server backups. |
| TLS private keys | Certificate keys | Not needed — reissue instead. See SSL / TLS Setup. |
| Application code | The repository | Yes, from version control — provided the remote is not the only copy. |
Write your own version of this table for your application, and confirm each row is actually covered. The row people discover is missing is almost always user uploads.
Schedules and retention
Two numbers describe what a backup schedule buys you:
- RPO — recovery point objective. How much recent work you can afford to lose. It is bounded by backup frequency: hourly backups mean up to an hour of data loss in the worst case.
- RTO — recovery time objective. How long you can afford to be down while restoring. It is driven by data size, where the backup is stored, and how quickly a restore can be started.
Retention matters separately from frequency. Frequent backups with short retention protect against a server failure but not against a corruption or a bad migration you notice a week later — by then, every retained copy contains the problem. A tiered scheme is the usual answer:
| Tier | Protects against | Your setting |
|---|---|---|
| Frequent, short retention | Hardware failure, an accidental delete noticed the same day | frequency and retention — confirm |
| Daily, medium retention | A bad deploy or migration noticed within days | retention — confirm |
| Weekly or monthly, long retention | Slow corruption, a deletion discovered much later, compliance requirements | retention — confirm |
Ask for your actual numbers and record them somewhere your team can find them. "We have backups" is not a plan; "we can return to any point in the last N days, and a restore takes about T" is.
How backups are taken
Databases
Copying a database's files while it is running produces a file that may not be restorable. Use the database's own tooling.
-
Logical dumps —
pg_dumpfor PostgreSQL,mysqldumpormariadb-dumpfor MySQL/MariaDB. Portable across versions, easy to inspect, selective to restore. Slower on large datasets. - Physical / snapshot backups — a consistent copy of the data directory, often with a write-ahead log for point-in-time recovery. Faster for large databases, but tied more closely to the engine version.
# PostgreSQL — custom format, compressed, restorable selectively with pg_restore
pg_dump -Fc -d your_database -f your_database-$(date +%F).dump
# MySQL / MariaDB — single-transaction avoids locking InnoDB tables
mysqldump --single-transaction --routines --triggers \
your_database | gzip > your_database-$(date +%F).sql.gz
Do not put the password on the command line, where it lands in shell history and in
the process list. Use a ~/.pgpass file, a MySQL option file, or the
credential mechanism your platform provides.
Files
Tools such as restic, borg, or rsync with
hard-linked snapshots all work. What matters is that backups are incremental (so
frequency is affordable), deduplicated or rotated (so storage stays bounded), and
verifiable.
Encryption
A backup is a complete copy of your data in a place with different access controls from the server it came from. Encrypt it at rest, and store the encryption key somewhere separate from the backups themselves. A key stored only on the server you are restoring is not a key you have.
Where backups live
The 3-2-1 rule is still the clearest formulation: three copies of the data, on two different kinds of storage, with one off-site. The off-site copy is the one that matters — a backup on the same machine protects against a mistake, not against losing the machine.
Give the off-site copy credentials that can write but not delete or overwrite, where the storage supports it (append-only or object-lock modes). This is specifically what stops an attacker or a buggy script from destroying the backups along with the original.
Backup location and off-site target for your account: confirm during onboarding.
Testing a restore
A backup that has never been restored is an assumption. Restore it somewhere harmless and confirm the data is actually there and actually usable — that is the only evidence that the backup works.
A restore test, at minimum:
- Take a recent backup and restore it into a separate, non-production database or directory. Never restore over live data as a test.
- Check row counts on the tables that matter, and the most recent timestamp in each — a backup that restores cleanly but is three weeks stale has still failed.
- Point a local copy of the application at the restored data and confirm it starts and serves real pages.
- Confirm files are included too, not just the database. Open a few.
- Record how long the whole thing took. That number is your real RTO.
# PostgreSQL — restore into a scratch database, never the live one
createdb restore_test
pg_restore -d restore_test your_database-2026-09-29.dump
psql -d restore_test -c "SELECT count(*) FROM your_table;"
# MySQL / MariaDB
mysql -e "CREATE DATABASE restore_test;"
gunzip < your_database-2026-09-29.sql.gz | mysql restore_test
Do this on a schedule — quarterly is a reasonable minimum — and after any change to the database engine, the backup tooling, or the schema.
Requesting a restore
Restores are handled through support. Contact details and the process for your account are provided during onboarding; the request channel is your support contact — confirm during onboarding, and the general contact route is the contact form on the main site.
Before you get in touch
- Stop making changes to the affected system. Continued writes after data loss make a restore harder and can make a partial recovery impossible.
- Do not delete anything, including things that look broken. They may be needed to work out what happened, or to merge with restored data.
- Write down the timeline while it is fresh: when the data was last known good, and when the problem was first noticed. The restore point is chosen from these two numbers.
What to include in the request
Providing all of this up front avoids a round trip and gets the restore moving sooner:
- Account and environment — which site, which domain, production or staging.
- What needs restoring — the whole database, one table, a directory, specific files. Be as narrow as you can.
- The restore point — a date and time, with timezone, at which the data was known good.
- When the problem started, if known, and what changed around then — a deploy, a migration, a bulk edit.
- Where it should go — restore over the live data, or restore alongside it so you can compare and merge. Alongside is safer and is usually the right answer when anyone has written data since the incident.
- Impact and urgency — whether the site is currently down, and whether data is still being written.
A template you can copy
Account / site: your account or domain
Environment: production | staging
What to restore: e.g. the "orders" table, or /uploads/2026/
Restore point: YYYY-MM-DD HH:MM timezone (last known good)
Problem first seen: YYYY-MM-DD HH:MM timezone
Likely cause: e.g. migration in deploy abc1234, or unknown
Restore target: over live data | alongside, for comparison
Current impact: site down | degraded | data missing, site up
Writes still happening to the affected data? yes | no
Contact for this request: name and how to reach you
It discards everything written since the restore point. If anyone has used the system since the incident, ask for the restore to be placed alongside the live data so the two can be compared before anything is overwritten. Once the decision is made, say so explicitly in the request rather than leaving it to be inferred.
While a restore is in progress
- Keep the affected system out of use if you can — a maintenance page is better than users writing data that is about to be discarded.
- Expect the restore to take longer than the backup did. Restores are generally slower, and large datasets are slower still.
- Verify before resuming normal use: check the specific records you know were affected, not just that the application loads.
- Afterwards, write down what happened and what would have caught it earlier. If the cause was a deploy, Deployments — Rollback covers preventing a repeat; if it involved unauthorised access, follow Incident reporting.