Internal system backup and recovery: what to actually test

Internal system backup and recovery: a restore test plan to confirm that the database, attachments and the system itself come back with the right data.

Backup restore test Four steps in a separate environment 01 Choose what to copy Database, attachments, config 02 Restore separately Away from production, no real integrations 03 Check data and use Records, attachments and daily screens 04 Record the test Who ran it, what failed and the fix Copy out of reach of the system's credentials Backup and recovery

Quick answer

Internal system backup and recovery is only proven when someone restores the copy in a separate environment and checks the result. The test has to bring back the database and the attachments, start the system, compare recent records against production and end with a record of who did it, when and what went wrong.

What you will find

  • Why a backup job that has run for years may bring nothing back
  • What the copy needs to include beyond the database
  • A restore test plan in a separate environment, from start to final record
  • How to check that the data came back complete and the system really works
  • Why a backup reachable with the system's own credentials can be lost along with it in an attack
On this page
  1. What is internal system backup and recovery?
  2. Why might a backup that has run for years not work?
  3. What goes into the copy and what usually gets left out?
  4. How do you run a backup restore test?
  5. How do you know the system came back with the right data?
  6. What if the backup can be deleted with the system's own credentials?
  7. What if the system belongs to a vendor or runs in the cloud?
  8. When is this not enough?
  9. Frequently asked questions

The maintenance system's server goes down on a Tuesday morning. The IT analyst reassures the board: there has been a backup every day since the system went live. He opens the backup folder and finds files dated yesterday. When he tries to restore, he finds out that nobody remembers the password protecting the file, that the copy holds only the database, and that the inspection photos and signed PDFs lived in another folder that was never part of the job. Meanwhile the field team keeps working and writes everything down on paper.

This article is about the test that prevents that morning. You'll leave with a restore test plan that starts with choosing what to copy and ends with confirming that the system came back with the right data, plus criteria to tell whether the backup survives an attack. If the system is already old and you're weighing what to do with it, the article on legacy system modernization helps you fit the backup into that decision.

What is internal system backup and recovery?

Internal system backup and recovery is the set of copies of the system's data and files, plus the procedure that turns those copies back into a working system. The backup is the copy. Recovery is the way back, and it only really exists once it has been done at least once.

CIS, the nonprofit Center for Internet Security that publishes the CIS Controls, a set of security controls widely used in audits, devotes a whole control to this. Control 11 covers keeping data recovery practices able to return systems to a trusted, pre-incident state. A folder full of backup files doesn't prove the system comes back.

In a typical internal system, recovery involves more than one piece. The database holds the records. Attachments, such as photos, receipts and PDF reports, usually sit in separate file storage. And the system still depends on configuration, certificates and integration credentials to start.

Why might a backup that has run for years not work?

A backup that has run for years may not work because the job shows that a copy was written and says nothing about whether it can be restored. The "backup completed" notice confirms that a file was written, and nothing more.

On the first restore attempt, one of these problems usually shows up:

  1. The copy covers the database and leaves out the attachments folder, which grew after the job was set up.
  2. The system moved to another server or database, and the job kept copying the old location.
  3. The backup file is protected by a password only the person who built the job knew, and that person has left.
  4. The restore depends on steps that were never written down, such as the right database version or a server setting.
  5. The job has been ending with an error for months, and the alert goes to a mailbox nobody reads.

CISA, the US Cybersecurity and Infrastructure Security Agency, recommends in its ransomware guide keeping offline, encrypted backups of critical data and regularly testing their availability and integrity in a recovery scenario.

In continuous operations, such as a port, a hospital or an industrial plant, a failed recovery only shows up on the day it's needed. The shift carries on with paper or phone calls, and every hour of improvising turns into data entry rework later.

What goes into the copy and what usually gets left out?

The copy has to include everything the system uses to run and to show data to users, and the database is only part of it. The table lists the pieces of a common internal system, the question each one answers and what happens when it's left out.

What to copyThe questionIf it's left out
DatabaseIs the copy of the database in use today, complete?The system comes back with no records or old data
Uploaded attachments and filesAre photos, PDFs and receipts in the job, as often as the database?Records come back with broken links to their documents
Files the system generatesCan issued reports and certificates be generated again, or do they need copying?Documents already delivered to clients vanish from the history
Server configuration and variablesCan someone rebuild the configuration without looking at the old server?The system won't start, even with the data restored
Integration credentials and certificatesAre integration keys and certificates stored somewhere safe and known?The system starts but can't talk to the ERP, email or other systems
Restore documentIs there a written step-by-step, tested by someone else?The restore depends on someone's memory

Attachments are the piece most often missed. In document-heavy systems, such as the scholarship management system we built, the documents applicants upload are kept in private storage, outside the database. A database-only backup would bring back the applications without the documents behind each review. In the field ERP for tank cleaning, the photo report depends on photos taken in the field, and without them the report can't be issued again.

Credentials need to be reachable for whoever restores and protected from everything else. The article on exposed API keys in code shows where those keys should live.

How do you run a backup restore test?

A restore test means taking a real copy, restoring it in an environment separate from production, checking that the data is complete and the system works, and recording what happened. The plan also works for holding the vendor that maintains the system to account.

Restore test plan for an internal system

Ready to use · 17 items

Work through it in order and keep a record of every test. The plan is meant for the IT team or for the vendor that maintains the system, and it is a starting point to adapt to your company's infrastructure. The test is never run on the production environment.

Decide what to copy

Restore in a separate environment

Check the data

Record and fix

Two rules make the test more honest. The first is to restore using only what's written down. Whoever built the job fills gaps in the documentation without noticing, so have someone else run it and note every question that had to be asked.

The second rule is to isolate the test environment. A system restored with production settings can send email to clients, trigger ERP integrations or write to real folders. Before starting the system, turn off email sending and point integrations at nothing or at test environments.

The PostgreSQL documentation, for an open source database widely used in internal systems, describes different kinds of backup, from a dump file to continuous archiving, each with its own restore procedure. The test follows the procedure for the kind your job uses.

How do you know the system came back with the right data?

The system came back with the right data when recent records are there, attachments open and users can do their daily work in the restored environment.

The first check is the count. Compare the number of records in the main tables with production on the date of the copy: work orders, requests, inspections, users. Large differences point to a partial copy.

The second is the sample. Pick records created in the last few days before the copy and open each one. Check the fields, the attachments and the change history. Include old records too, because files from years ago may be in a different storage location. In large systems, such as the port operations platform we maintain, with more than 160 tables and an integration with the warehouse management system's database, the sample has to cover the modules the operation uses most.

The third is use. Ask one user from each role to do a common task in the restored environment: open a work order, issue a report, approve a request. This is where failures show up, like a report that won't generate because a font or template is missing, or a screen that won't open because an integration doesn't respond.

At the end, the test record answers four questions: which copy was used, who ran it, how long each stage took and what failed. It's the evidence an auditor may ask for.

What if the backup can be deleted with the system's own credentials?

If the credentials the system uses every day can delete or change the backups, an attack on the system can take the backup with it. Whoever breaks into the server gets the access the system has, including access to the backup folder.

The same CISA guide explains that many ransomware variants look for reachable backups to delete or encrypt, precisely to make restoring impossible without paying the ransom. That's the reason for the advice to keep offline copies, or at least copies out of reach of production credentials.

In practice, a manager can ask the team three questions:

  1. Can the account the system uses to write backups also delete them? If so, is there another copy it can't reach?
  2. Do the people with administrator passwords for the server also have access to where the backups are stored? Are they the same people?
  3. Is there a copy with retention that blocks deletion before a set period, or one kept in another account with another password?

The restore test should use that isolated copy, at least from time to time. It's the one you'll use in the worst case, and it's usually the least tested.

The backup also holds personal data and needs the same protection as the system. A forgotten copy in open storage is one of the paths described in the article on data leaks in internal systems, and anyone who can restore the backup has, in practice, access to all the data. Include that access in your review of access permissions in internal systems.

What if the system belongs to a vendor or runs in the cloud?

When a vendor maintains the system or it runs on a cloud service, responsibility for the backup has to be in writing, and the test is still needed. The cloud provider usually offers the feature, but what gets copied and for how long depends on the configuration you pay for.

Ask the vendor for the same evidence as in the plan: the list of what's copied, where the copy is kept, who has access to it and the record of the last restore test. If the answer is vague, agree on a test with your team watching. The security checklist before production already lists a backup with a completed test restore among the items to require before releasing a new system.

Old systems bring another difficulty. The database or server version may no longer be available to install, and restoring the copy means rebuilding an environment nobody documented. In that case, the restore test is often the first step of a modernization plan, because it shows exactly what depends on parts that are out of support.

When is this not enough?

The plan proves that the copy comes back and that the system works with it. It doesn't replace a business continuity plan, which defines how the operation carries on while the system is down. NIST, the US National Institute of Standards and Technology, publishes SP 800-34, a guide to contingency planning for information systems that shows how that plan connects to an organization's other emergency plans.

If the test shows that personal data may have been lost or exposed, bring in your data protection officer and legal team. In Brazil, the LGPD, the country's general data protection law, requires security measures against loss and destruction of data, and handling an incident goes beyond what this article covers.

boosting.tech, a custom software company, checks how the backup is made and whether it can be restored as part of its fixed-scope security assessment of internal systems. We look at what goes into the copy, where it's kept and who can delete it, and deliver a list of what to fix first. The first conversation is free. Write to jcm@boosting.tech or use the contact page. To keep the system's backup tested afterwards, see our support and modernization service.

Frequently asked questions about internal system backup and recovery

How often should I test a backup restore?

Test at least once now, to know where you stand, and then on a regular cycle set by how important the system is. Test again whenever something big changes: a new server, database, vendor or backup job. Contracts and audits sometimes set the frequency for you. What matters most is that each test has a date on the calendar and a named owner.

How do I validate a backup without touching production?

Restore the copy in a separate environment, such as another server or a virtual machine created just for this, with no access to real integrations and with email sending turned off. Run the record count, the sample of records and the use by role in that environment. When you finish, delete the environment, because it holds real data.

Is a database backup enough?

Rarely. Most internal systems keep attachments, such as photos, PDFs and receipts, outside the database, and depend on configuration and credentials to run. If the job copies only the database, the restore brings back records with broken links to their documents. List everything the system uses and check that each item is in the job, as often as the database.

Who should run the restore test?

Ideally, someone other than the person who built the backup job, following only the documentation. That way the test exposes the gaps in the step-by-step. The person who knows the job watches and answers questions, and each question becomes an improvement to the document. If a vendor runs the system, ask them to run the test with someone from your team watching.

What should I do if the restore test fails?

Treat the failure as a finding of the test. Record what went wrong, set an owner and a deadline for the fix, and schedule a new test right after the fix. Until then, check whether another copy works and tell the board about the risk, so the decision about what to do next is made with the full picture.

System support and modernization

We take over existing systems and modernize them in parts, without stopping the operation.

Talk on WhatsApp See the service

Founder and developer, boosting.tech

Founded boosting.tech and has built custom software for more than 10 years. Writes from the systems the company builds and maintains, the oldest of them in continuous development since 2019.

Let us understand your process

The first conversation has no cost. You leave knowing where to start, even if you decide not to go ahead with us.

Example: today we track permits to work on paper and spreadsheets.