How to Restore a Previous Version of Your Website

Backup drives and a laptop showing how to restore a previous website version
Photo by Avinash Kumar on Pexels

To restore a previous version of your website, you need a backup that was made before the problem started. A backup is a saved copy of your site’s files and database. You can restore that copy to put your site back the way it was on the day the backup was made. If you use WordPress, you may also be able to roll back just one plugin or theme without touching the rest of the site.

This guide explains how to check for a backup, how restoring works, and the safest options for WordPress users. It is written for people who do not use code or server tools.

Before you start: check whether you have a backup

Look for a backup before you change anything else. Your options are usually in one of these places:

  • A backup plugin. Plugins such as UpdraftPlus or BackWPup keep backups inside your WordPress admin area or in cloud storage.
  • Your hosting control panel. Many hosts make regular backups of the whole server. Look for a section named something like “Backups” or “Restore”. Check your host’s help pages, or ask their support team how to restore a copy of your site.
  • Files you saved yourself. This could be a download from your control panel or a copy on your computer.
  • A staging site. A staging site is a private copy of your website used for testing. If you made one before the change, you may be able to copy it back.

If you have no backup, you may still be able to fix the problem. Go to the section on rolling back a single plugin or theme below.

What a full website backup contains

A WordPress site is stored in two places. You need both parts to restore it fully.

Part What it holds Examples
Files The software and design of your site Themes, plugins, uploaded images, configuration
Database The content and settings you have added Posts, pages, comments, products, orders, user accounts

The database is a storage area that holds your content. The official WordPress guidance says that downloading the WordPress folder alone is not a full backup, because the database is kept separately.

How restoring from a backup works

Restoring means copying a saved backup back into your site. It replaces what is there now. Keep these points in mind:

  • A database restore rolls back your content. The official WordPress documentation says a database restore replaces your current database with the backup. Anything added after the backup was made is lost. This includes new posts, comments, and shop orders.
  • Restore only what broke, where you can. If a plugin update caused the problem, you may only need to restore the plugins. If the wording or images on a page were damaged, you may only need the database.
  • Remote backups take longer. If your backup is stored in cloud storage, the plugin first has to download it. This can take some time on a large site.
  • Keep your current state. Before a full restore, make a fresh backup of the broken site. If the restore does not work as you expected, you can go back to that copy.

Option 1: Restore with a backup plugin (UpdraftPlus)

UpdraftPlus is a free backup plugin listed on the WordPress.org plugin directory. Many guides describe the steps below. Check the plugin’s own page for the current layout, because menu names can change between versions.

Step 1: Install the plugin

  1. Log in to your WordPress admin area.
  2. Go to Plugins > Add New.
  3. Search for UpdraftPlus, then select Install Now and Activate.

Step 2: Make a backup of the current site

  1. Go to Settings > UpdraftPlus Backups.
  2. Open the Backup / Restore tab.
  3. Select Backup Now.

Making a backup first protects you if the restore goes wrong.

Step 3: Restore a backup

  1. On the same Backup / Restore tab, find the backup you want under Existing backups. Check the date.
  2. Select Restore.
  3. Choose the parts to restore, such as Plugins, Themes, Uploads, Others or Database. Only tick what you need.
  4. Select Restore again to start.

A restore can only use a backup made by the same plugin. If you change backup plugins, keep the old one installed until you have finished restoring.

Option 2: Restore with another backup plugin (BackWPup)

BackWPup is a WordPress.org plugin that can make full backups, files-only backups, or database-only backups. It can run on a schedule and store copies on the server, in the cloud, or both.

To restore, open the BackWPup backups list inside your admin area and choose the backup you want. Use the database-only option if your only problem is damaged content. Use a full backup if the site is badly broken.

Option 3: Restore by hand with your control panel

If you cannot use a plugin, you can restore by hand. This is more technical. If you are not comfortable with it, ask a developer or your host for help.

  1. Export the database. Many control panels include phpMyAdmin, a tool for managing databases. Official WordPress guidance describes exporting the database from it.
  2. Download the files. Official guidance describes using FTP (File Transfer Protocol, a way to copy files between your computer and your web server) to download the WordPress files.
  3. Restore the files and database. Upload the files back to the server and import the database backup. Handle the wp-config.php file with care. It holds your database connection details, and a wrong value will stop the site from loading.

Official guidance warns that restoring the database replaces the current one. Make sure you have a copy of the current state first.

Roll back one plugin or theme

If the problem started after a plugin or theme update, you may not need a full restore. You can often go back to the older version of that one item.

WP Rollback

WP Rollback is a free WordPress.org plugin. It only works with plugins and themes that are hosted on the WordPress.org directory.

  1. Install and activate WP Rollback.
  2. Go to Plugins and find the plugin you want to roll back.
  3. Select the Rollback link.
  4. Pick the version you want and confirm.

PlugVersions

PlugVersions is a WordPress.org plugin that keeps up to three older versions when you update a plugin. Its listing says it also works with premium and custom plugins.

  1. Go to the Plugins page.
  2. Select the version you want to restore.

The plugin’s listing says a restore link may fail on WordPress 7.1 and later, when used from the plugin name cell. It still works on earlier versions. If the link does not work, try another option in this section.

Install an older version by hand

Many plugin pages on WordPress.org have a Previous Version section near the bottom. You can download an older version from there, then install it. Check the current page layout first, as older guides may show it in a different place.

Older versions may not always be available. WordPress.org usually keeps only recent versions, and developers can remove old ones. If the version you need is missing, you will need a full backup.

Rolling back WordPress itself

Some guides describe downgrading WordPress core, the main software, by downloading an older release and replacing its files. This is not the safest option. Restoring from a full backup is usually easier and less risky. Only try a manual downgrade if you have a complete backup and know how to use FTP.

If your WordPress admin area will not load

If you cannot log in, you cannot use the backup plugin inside WordPress. One approach described in guides is:

  1. Install a fresh copy of WordPress on your hosting.
  2. Install the same backup plugin you used before.
  3. Upload your old backup files to the backup folder used by that plugin.
  4. Use the plugin to restore the backup into the new installation.

If you have trouble logging in, read Can’t Login to WordPress? Recover Admin Access Without a Plugin before you try a restore. It covers the login problem itself.

How to avoid this problem next time

  1. Set up scheduled backups. Daily backups for busy shops, weekly for quieter blogs. Keep several copies over time.
  2. Store copies off the server. Keep at least one copy in cloud storage or on your own computer.
  3. Test a staging copy before big changes. Update plugins and themes on a test copy first, then on the live site.
  4. Update in small steps. Updating one plugin at a time makes it easier to see what caused a problem.
  5. Check a backup now and then. A backup you have never restored is a guess, not a plan.

For more background, read How to back up your website and prevent data loss. For keeping your software current, see How to keep your website software up to date.

Next steps

  1. Find out whether you have a backup, using the places listed at the start of this guide.
  2. If you have a recent backup, make a fresh backup of the current site before you restore anything.
  3. If only one plugin or theme caused the problem, try a rollback first.
  4. Write down what you did and the date, so you can check the result.
  5. Set up scheduled backups so you have a recent copy ready next time.

FAQ

Will restoring a backup delete my new posts and orders?

It can. A database restore replaces your current content with the state it was in when the backup was made. Anything added after that point will be lost. Make a fresh backup of the current site first, so you can recover it if needed.

Can I restore only one page of my website?

Not always. Backups usually restore the whole database or the whole set of files. For a single page, you may be able to copy the text or images back by hand from an older version, or from a staging copy. Some backup plugins can restore parts, but check the options your plugin offers.

What if I have no backup at all?

Check your hosting control panel for server backups, and ask your host how to request a copy. If the problem is a plugin or theme update, try a rollback with WP Rollback or PlugVersions. If you cannot get your site back, a developer may be able to help you find another copy.

Is a plugin rollback safe?

It is usually safer than restoring the whole site, because it changes only one item. Still, check that the older version works with your current WordPress version. Make a backup before you roll back, in case something else breaks.