Backups: present, complete, tested
Operations and securityWhat belongs in a backup, where it has to live, how long to keep it, and why only a backup someone has already restored from counts.
7 min read
By Timo Wessels Published
“We have a backup” is one of the sentences that is most often untrue in an emergency. Not because someone lies, but because “backup” can mean three things, and only one of them helps.
The most important points first:
- A backup only counts once it is present (it is made regularly), complete (it contains everything for restoring) and tested (someone has restored from it before).
- It almost always fails at the third point. It is the only one that counts in an emergency.
- Keep one copy in a different place from the website itself.
What belongs in a complete backup
The WordPress documentation puts it briefly: a backup has two parts, database and files. You need both to restore a WordPress website completely.
- The database holds all content: pages, posts, settings, users, form entries. Without it the website is empty.
- The files are WordPress itself, the theme, the plugins, the configuration file and above all the folder with all uploaded images and documents. Without them the design and every image are missing.
A backup with only one of the two parts is none. That happens more often than you think: a provider advertises “backups” and means only the database, or someone copies the files and forgets the database. In my experience the configuration file with the credentials is also sometimes left out, because it contains sensitive data. Without it, restoring gets laborious.
Where the backup must be kept
Not only on the same server as the website. This is the most important rule and the one most often broken.
A backup in the same directory helps in exactly one case: when something was deleted by mistake. With a server failure, a blocked or lost hosting account or an attack with server access, the backups are affected along with everything else.
The WordPress documentation advises keeping at least three to five recent backups and storing the copies in different places. Its example: one on the host’s server, one in cloud storage and one downloaded to your own computer.
For a business website the minimum is: one automatic backup on the server and one automatic copy elsewhere.
How often, and how long to keep
How often depends on how much work you are willing to lose. The WordPress documentation advises: back up the database regularly and always before an update. For websites with a lot of activity and many posts it recommends daily backups. For a shop with ongoing orders, daily is in my assessment rather too little.
Additionally always before a WordPress update, a theme or plugin update, installing a new plugin and larger rebuilds. That is where a backup is most often really needed: not in an attack but after an update that broke something.
How long to keep is the question hardly anyone thinks about. Attacks are often discovered late. In its 2025 report on the cost of data breaches, IBM measures that organisations needed on average 241 days to identify and contain a breach. Whoever keeps only the last three days may in an emergency have three already infected backups.
As a working value I use 30 days for business websites, longer is better. On the server only a few days are kept, the long retention lies at the second place, because storage is cheaper there and does not disturb operations.
The point where it fails: the restore test
A backup from which nobody has ever restored is a guess.
The German Federal Office for Information Security (BSI) makes it a basic requirement in its IT baseline protection, CON.3.A15: it must be tested regularly whether the backups work as intended, above all whether the saved data can be restored in good order and in reasonable time.
What goes wrong in practice (my experience):
- The file is damaged and cannot be unpacked.
- The backup has been running for months with an error nobody saw, because nobody reads the messages.
- The upload folder was excluded because it was “too large”.
- The database is there, the configuration file is missing.
- Everything is complete, but nobody knows how to restore it, and in an emergency there is no time to learn.
The honest test: restore the backup on a test environment. Open the home page, log into the back end, look at a few subpages, send a form and check that the images are there. If that works, you have a backup.
The quick test in between: check whether the last backup exists, when it was made and how large it is. A backup that suddenly has a tenth of the usual size is a warning sign.
What you need in an emergency
An emergency is no good time to search for things. This information belongs in a place you can reach independently of the website (my recommendation):
- access to the host: customer number, login, contact person
- access to the domain manager, if that is a different one
- access to the place where the backups are kept
- credentials for the database and file access
- a short guide on the order of restoring
- who calls whom
That sounds bureaucratic. It is the difference between two hours and two days.
The order of restoring
In broad strokes, the details are usually done by someone who knows how:
- Put the website in maintenance mode or take it off the net so that no further damage happens.
- Back up the broken state first. That sounds absurd and is important: if something goes wrong in restoring, the broken state is better than none. After an attack you may need it for clarification.
- Restore the files.
- Restore the database.
- Check the credentials in the configuration file.
- Check: home page, most important subpages, forms, images, back end.
- After an attack, change all passwords.
Ask why it happened. A restore without finding the cause leads to the same thing happening again soon, especially after an attack, where the hole is still open.
What the host’s backups do and do not do
Almost every host advertises backups. That is good and does not replace a solution of your own. Three questions about it:
- How far back do they reach? Often it is seven or fourteen days. For a late-discovered attack that is too little.
- Can you restore yourself, or do you have to ask? If it goes through a ticket, it can take a while at the weekend.
- Can you bring back single things or only the whole state?
And the fundamental objection: the backup lies with the same provider as the website. If something goes fundamentally wrong there, both are affected. Backups by the host are a convenience. Your own backup in another place is the protection.
Five questions you can answer today
- When was the last backup made?
- Where does it lie?
- Does it contain database and files?
- How far back do the backups reach?
- When did someone last restore from one?
If you cannot answer one of them, that is your first work step. One practical look more: the last five backups should be about the same size and grow with the content. A sudden drop means something was not backed up.
What you can do
- Clarify the current state. Answer the five questions above.
- Arrange a copy off the premises. If you change only one thing, then this.
- Extend the retention to at least 30 days.
- Do a restore test. Once. Afterwards you know whether you have a backup or a hope.
- Add the check to regular maintenance: monthly whether the backup runs and is complete, and by sampling whether it can be restored.
- Create the emergency folder: access details and the order, outside the website.
Of all the points in ongoing care this is the only one where a failure leads not to a worse website but to none at all. Everything else can be made up. Lost data cannot.
Sources
- WordPress Developer Resources, WordPress Backups — two parts, database and files; daily backups for high activity; before every update; at least three to five recent backups in different places: developer.wordpress.org(external site: developer.wordpress.org)
- BSI, IT-Grundschutz building block CON.3 Datensicherungskonzept — CON.3.A15: backups must be tested regularly, above all whether the data can be restored in good order and in reasonable time: bsi.bund.de(external site: bsi.bund.de)
- IBM, Cost of a Data Breach Report 2025 — on average 241 days to identify and contain a breach: ibm.com(external site: ibm.com)
- Own testing practice — 30 days of retention, the order of restoring, the emergency folder, the questions on the host’s backups, the five questions, the size of backups as a warning sign.