Restoring a WordPress site, what actually happens

Up Speed

Up Speed

Backups
Restoring a WordPress site, what actually happens

Most people have never restored a WordPress site. They have backups, they assume a restore is quick, and they have no picture in their head of what the process involves. Then something breaks and they are learning it under pressure at nine at night.

Worth knowing beforehand. Here is what actually happens.

Before anything gets restored

The first mistake is restoring immediately. It feels like the fast route and it usually costs more time than it saves, because restoring wipes out the evidence of what went wrong. If the cause is still there, malware, a bad plugin, compromised credentials, you will restore straight back into the same failure.

Two things happen first.

Take a copy of the broken site. Yes, the broken one. It contains everything that changed since your last backup, orders, comments, form entries, and you may need to pull data out of it afterwards. It also contains the evidence of what happened.

Work out what actually broke. Was it an update? A hack? A server problem? The answer changes what you restore. A plugin conflict might only need one plugin rolled back. A defaced site needs a full restore from before the intrusion, and often that means going further back than the newest copy.

The fix: before any restore, write down two things. What time did the problem start, and what changed just before it. Those two answers pick the right backup, and picking the wrong backup is the most expensive mistake in this whole process.

The restore itself

A WordPress restore has two halves that must match: the files and the database. Restoring one without the other is the most common way to turn one problem into two.

The sequence is roughly:

  • Put the site into maintenance mode so visitors see a holding page rather than a half-restored site.
  • Restore the files. The whole wp-content directory, themes, plugins and uploads, plus core files. Usually the existing files are cleared first so leftovers from a compromise do not survive.
  • Restore the database. The existing tables are dropped and replaced from the backup. This is the point of no return for anything created since the backup ran.
  • Fix the configuration. wp-config.php holds database credentials specific to the environment. Restoring a copy from a different server with the wrong credentials gives you the "error establishing a database connection" screen.
  • Check the URLs. If the domain or protocol differs from where the backup was taken, references inside the database need updating. Doing this with find-and-replace on a raw SQL file breaks serialised data, which is why proper tools handle it differently.
  • Flush caches and permalinks. Object cache, page cache, CDN. Otherwise you spend twenty minutes debugging a page that was fixed the whole time.

On a small site with a good tool, that can genuinely be close to one click. On a large site, or one being restored somewhere new, it is a careful half hour.

What to check before calling it fixed

A homepage that loads proves almost nothing. Work through a real list:

  • Homepage, a blog post, a normal page, and a category archive.
  • Images on those pages. Broken images mean the uploads folder did not come across.
  • wp-admin login, and that your user account still has admin rights.
  • Contact forms. Submit one and confirm the email arrives.
  • Checkout, if you sell anything. All the way through with a test order.
  • Recent orders or users. Confirm what date the data stops at, because that is your actual data loss.
  • SSL. A restored site can end up serving mixed content and throwing browser warnings.
  • Scheduled tasks. Backups, subscriptions and email jobs sometimes need restarting.

The fix: keep that checklist in a document now, while nothing is broken. Nobody writes a good checklist at midnight during an outage.

The part nobody warns you about

Restoring returns your site to the moment the backup was taken. Everything after that moment is gone from the live site. Orders placed, comments left, posts written, form submissions received, all of it.

That is not a flaw in anyone's product, it is what a scheduled backup is. It is also why you kept the copy of the broken site. Often the recovery job is not just "restore" but "restore, then manually re-enter the eleven orders that came in afterwards from the copy and your email receipts."

Budget time for that. It is frequently longer than the restore itself.

Who does this at 9pm on a Sunday

The technical steps are learnable. The hard part is that restores happen at bad times, under pressure, when you have customers asking why the site is down and you are reading documentation for the first time.

Up Speed includes scheduled off-site backups on every plan, roughly four times a month, 30-day retention, with one-click restore, and we test restores quarterly so the file is proven rather than assumed. When something breaks, a real human handles the restore. There is no dashboard for you to log into and no ticket queue to sit in.

Being straight about the tradeoff: a scheduled backup means anything since the last run is not in it, and no restore changes that. What we can do is make sure the copy exists, works, and gets put back by someone who has done it before.

If your site going down costs you money by the hour and you want the fastest hands on it, that is the Premium plan, which includes a 1-hour emergency response SLA and a dedicated point of contact who knows your site.

Share this post

Start with a free WordPress site audit.

Send us your site and we will check its speed, security, backups, and update status, then write up what we found. A real person does the review.

  • No credit card required

  • No contracts, cancel anytime