All articlesProduct Engineering

Backup and Disaster Recovery for Business Software: Why You Must Test the Restore

CT
CreativeIn Tek Team
· 11 min read
Backup and Disaster Recovery for Business Software: Why You Must Test the Restore

Almost every business that runs its own software says it has backups. Far fewer can say when they last proved that a backup actually brings the system back. Backup and disaster recovery for business software is not finished when a nightly job runs; it is finished when someone has taken a real backup file, restored it somewhere safe and confirmed the data is complete. That is why the single most useful habit in this area is simple: test the restore, on a schedule, and keep evidence that it worked.

This guide explains recovery goals in plain words, the main kinds of database backup, where copies should live, how backups fail silently, and how to run a restore test without putting production at risk. It draws on the PostgreSQL documentation, the CISA ransomware guide, the UK NCSC advice on backing up data and NIST's contingency planning guide, all read on 1 December 2026. It is general guidance, not an audit of any particular system.

Key takeaways

  • A backup that has never been restored is an assumption, not a safety net. Test the restore regularly and record the result.
  • Agree two numbers first: how much recent data the business can afford to lose (RPO) and how long it can be without the system (RTO). They decide which backup method is needed.
  • Keep copies in more than one place, at least one off-site and protected from deletion, because CISA notes that many ransomware variants try to find and delete or encrypt accessible backups.
  • Backup jobs fail silently. Every run should verify its own output and send a success or failure alert, so a broken job is noticed the next morning, not months later.
  • Never restore over a live database to "test". Restore into a separate scratch database, compare table and row counts with the source, then delete the scratch copy.

RPO and RTO in plain words

Two terms shape every backup and disaster recovery plan. The recovery point objective (RPO) is the amount of recent work the business could lose without serious harm. If backups run once a night, the worst case is losing almost a full day of invoices, bookings or orders. If that is unacceptable, nightly backups alone are not enough.

The recovery time objective (RTO) is how long the system can be down before the damage becomes serious. A shop that can take orders on paper for a day has a different RTO from a clinic that cannot see appointments at all. The RTO decides how fast the restore must be, which in turn decides how big the backups can be, where they are stored and how practised the team must be.

NIST's Contingency Planning Guide for Federal Information Systems (SP 800-34 Rev. 1) is a long-standing reference for this kind of planning: it helps organisations evaluate their systems and operations to set contingency planning requirements and priorities. A small business does not need its full process, but the order of thinking is the same: decide what matters most and how quickly it must come back, then choose the technology.

Database dumps, snapshots and point-in-time recovery

Most business software keeps its important data in a database, so the database backup is the heart of the plan. The PostgreSQL documentation on backup and restore names three fundamentally different approaches, and the same ideas apply to most databases.

Logical dumps

A dump is an export of the data and structure as a file. According to the PostgreSQL SQL dump page, a pg_dump file is internally consistent, representing the database at the moment the dump began, and it does not block other operations while it runs (apart from operations that need an exclusive lock). Dumps are portable, easy to copy off-site and easy to restore into a different server, which makes them ideal for restore tests. Their weakness is the RPO: anything written after the dump started is not in it.

Disk or file-system snapshots

A snapshot copies the whole disk or data directory at a moment in time. It can be fast to take and fast to bring back, but it usually restores the entire machine or database cluster, not one table or one customer. A snapshot kept with the same provider and the same account is also exposed to the same account compromise or billing problem, so it should not be the only copy.

Point-in-time recovery

Point-in-time recovery (PITR) combines a base backup with a continuous archive of the database's change log. The PostgreSQL continuous archiving page says this makes it possible to restore the database to its state at any time since the base backup was taken. It is the right tool when the RPO is minutes rather than a day. The same page adds two cautions: recovery needs an unbroken sequence of archived log files back to the start of the backup, and the method restores an entire database cluster, not a subset. It also advises monitoring the archiving process. Many teams run PITR for a low RPO and keep nightly dumps as a second, simpler copy that is easy to test.

Where backups should live: off-site, versioned and hard to delete

A widely used rule of thumb is 3-2-1: keep three copies of important data, on two different kinds of storage, with one copy off-site. The exact numbers matter less than the principle behind them: no single failure, mistake or attacker should be able to destroy every copy at once.

The UK NCSC's advice on backing up important data makes the same point for everyday users: keep at least one backup separate from the main device, and do not rely on cloud syncing alone, because a sync can spread an accidental deletion while a backup gives a separate copy that can be restored. For business systems, that means:

  • Off-site object storage in a different account or provider from the production server, so losing the server does not lose the backups.
  • Versioning or immutability on the backup storage, so an overwritten or deleted file can still be recovered for a period.
  • Separate credentials for the backup job, limited to what it needs. The CISA #StopRansomware guide recommends offline, encrypted backups of critical data, because many ransomware variants try to find and delete or encrypt accessible backups.
  • Encryption in transit and at rest, with the decryption key stored somewhere that survives the loss of the main server, and known to more than one person.
  • Retention rules written down: for example, daily copies for two weeks and monthly copies for longer. Retention should be long enough to go back before a problem that was noticed late, such as silent data corruption.

Silent backup failures: the problem nobody sees

The most common backup disaster is not a dramatic outage. It is a job that quietly stopped working. A configuration value goes missing after a deployment, a password is rotated, storage fills up or a cloud key expires. The scheduled job still "runs" every night, but it uploads nothing, or uploads an empty file. Without checks, such a failure can go unnoticed for weeks, and the gap only appears on the day a restore is needed.

Defences are cheap compared with the cost of discovering this too late:

  • Every backup run checks its own output: the file exists, is not empty, opens without errors and is about the size of the previous one.
  • After upload, the job confirms the file is really present in off-site storage with the same size.
  • A separate check, run later, looks for last night's backup and alerts if it is missing, which also catches a job that never started.
  • Alerts are sent on success as well as failure. A daily "Backup OK" e-mail that stops arriving is itself a warning sign.
  • The backup log is kept and reviewed during regular maintenance.

How to test the restore safely

PostgreSQL's documentation warns that, by default, a restore script keeps running after an SQL error, which can leave only a partially restored database; it suggests stopping on the first error or using a single transaction. That is one more reason to test the restore before an emergency rather than during one. The golden rule is that a test must never touch production. Running a destructive restore script against the live database "to check it works" can turn a test into the very disaster the backup was meant to prevent.

A safe restore test looks like this:

  • Copy a real, recent backup file from off-site storage, exactly as it would be used in an emergency, and check its checksum.
  • Create a new, empty scratch database on a separate machine or instance, with a name that cannot be confused with production.
  • Restore the file with errors set to stop the restore, and note how long it took. That time is a real measurement against the RTO.
  • Compare the restored copy with the source: number of tables, row counts for every table, indexes, foreign keys, triggers and extensions.
  • Open a few key records, such as recent customers, invoices or bookings, and check they look right.
  • Delete the scratch database and any temporary copies of the file, especially if it holds personal data.
  • Record the date, the backup used, the duration, the comparison result and any problems found.

CreativeIn Tek follows this pattern for the systems it runs: nightly database backups go to off-site object storage and are verified after upload, success and failure e-mails go out after every run, and periodic restore tests load a real backup into a throwaway database and compare every table's row count with the live system before the copy is deleted.

A disaster recovery runbook outline

A runbook is a short written plan that someone other than the original developer can follow at 2 a.m. It does not need to be long. A useful outline covers:

  • Scope and goals: which systems are covered, with their agreed RPO and RTO.
  • Contacts and decisions: who can declare a disaster, who restores, who tells customers.
  • Where things are: backup locations, retention, how to obtain access and keys (named locations only, never the secrets themselves in the document).
  • Restore steps: rebuild or provision the server, restore the database, deploy the application from version control, restore uploaded files, update DNS if the address changes.
  • Checks before reopening: the same comparisons used in restore tests, plus logging in and completing a real transaction.
  • Afterwards: what data may be missing given the RPO, how to re-enter it, and what to change so it does not happen again.

Uploaded files, configuration and the application code matter as much as the database. A restored database is of little use if invoices reference attachments that no longer exist. Infrastructure topics like these are covered in more depth on the cloud infrastructure services page.

Questions to ask a software vendor or developer

Whether a business uses a SaaS product or has custom software built, these questions reveal quickly how seriously backup and disaster recovery is taken:

  • How often are backups taken, and what is the realistic RPO and RTO?
  • Where are backups stored, and are they in a different account or location from the live system?
  • Are backups encrypted, versioned or protected from deletion, and for how long are they kept?
  • How is a failed backup detected, and who receives the alert?
  • When was the restore last tested, how long did it take, and can the result be shown?
  • Can a single customer's data be restored, or only the whole system?
  • Can the business get a full export of its own data if it leaves?

For multi-tenant products, the last two questions connect to how data is separated between customers, a topic covered in the guide to multi-tenant SaaS with Postgres row level security. Teams preparing a quickly built app for launch can also use the AI-built MVP production-readiness checklist, where backups are one item among many.

Frequently asked questions

How often should a business test the restore?

There is no single rule, but CISA's guide recommends testing backup procedures on a regular basis. A practical rhythm for many small businesses is a full restore test every month or quarter, plus a test after any major change to the database, hosting or backup tooling.

Is a cloud provider's snapshot enough on its own?

Usually not. A snapshot held in the same account as the server shares its risks, such as account compromise, accidental deletion or a billing problem. It is a good fast-recovery option, but it should sit alongside an independent off-site copy.

Is syncing files to cloud storage the same as a backup?

No. The NCSC points out that syncing can spread an accidental deletion or change to every copy, while a backup is a separate copy that can be restored. Databases also need proper dumps or archives rather than copied files.

What is the difference between backup and disaster recovery?

A backup is a copy of data. Disaster recovery is the whole plan to get the business running again: people, steps, infrastructure, application code, files and checks. Backups are necessary for disaster recovery but not sufficient.

Can a restore test be run on the production server?

It should not be run against the production database. Restore into a separate scratch database, ideally on a different machine, so a mistake in the test cannot overwrite live data.

Get help with backups and recovery

CreativeIn Tek builds and runs custom software and SaaS products, including automated, verified backups, alerting and documented restore tests. Businesses that want their backup and disaster recovery set-up reviewed, or a restore test designed for their own system, can contact CreativeIn Tek to discuss it.

postgresqlsaas

Enjoyed this article?

Subscribe for occasional deep dives on shipping software well.