How to Restore WordPress from a Backup (Plugin, Host, Manual)

How to restore a WordPress site from a backup with UpdraftPlus, Duplicator or All-in-One WP Migration, from your host's panel, or by hand, plus fixes for what breaks after.

Summarize this post with AI

A 17-minute read, or the key points in about 30 seconds, in the assistant you already use.

Opens in a new tab with the prompt filled in. Nothing passes through this site.

To restore a WordPress site from a backup, you put back two things: the files and the database. With a plugin such as UpdraftPlus, that's one Restore button. From your host's panel, it's a restore with a date picker. By hand, you upload the files, import the database, then check wp-config.php and the site URLs.

The catch is that every restore overwrites what's there now. So the first job is always the same: save the broken site before you replace it.

This guide covers all three routes, plugin, host and manual, plus the fixes for the problems that show up after a restore. If you still need to make a backup, start with my guide on how to back up a WordPress site.

Some links are affiliate links; they don't change your price.

Editorial cover of restoring a WordPress site: a backup archive feeding files and a database back into a site window, with an amber check mark

Which restore method should you use?

Use the tool that made the backup. A backup can only be restored by something that understands its format, and that decides the route more than anything else.

  • You have an UpdraftPlus, Duplicator or All-in-One WP Migration backup, and you can log in to wp-admin: restore with that plugin.
  • Your host made the backup, or you can't reach wp-admin: restore from your host's panel.
  • You have a .sql file and a folder of files, or a plugin restore keeps failing: restore by hand over SFTP and phpMyAdmin or SSH.

TeamUpdraft says the free UpdraftPlus restores only backups made by UpdraftPlus. A plain .sql file and a .tar.gz from your host won't load into it, so those go the manual way.

Infographic decision path for restoring WordPress: a plugin backup with wp-admin access goes to the plugin restore, a host backup or no wp-admin goes to the host panel, and a .sql file plus files or a failing plugin goes to a manual restore
Use the tool that made the backup. That decides the route.

What should you do before you restore?

Five minutes here saves the restore from making things worse.

  • Download the current files and export the current database, even if the site is broken. Hostinger's docs warn that a restore overwrites your files and database and can't be undone.
  • Pick the backup date from before the problem started, not just the newest one.
  • List what changed since that date. New posts, comments, form entries and WooCommerce orders made after the backup will be gone.
  • Decide what you actually need back. A broken theme or plugin needs the files only. Deleted posts or bad settings need the database only.
  • If the site was hacked, find out how first. Restoring an older copy also restores the hole the attacker used.

How do you restore WordPress with a backup plugin?

Each plugin has its own restore screen. These are the official steps from each vendor's docs.

UpdraftPlus

  • Go to Settings, then UpdraftPlus Backups, and open the Backup / Restore tab.
  • Under Existing backups, find the set you want. If it's in Google Drive or Dropbox but not listed, click Rescan remote storage. If it's on your computer, click Upload backup files.
  • Click Restore and tick the parts you want: plugins, themes, uploads, others and the database.
  • Click Restore again and leave the tab open until it reports the restore was successful.

The free version restores whole components. TeamUpdraft says Premium can exclude specific plugins, themes or database tables, which helps when you want everything back except one bad plugin.

Duplicator

A Duplicator backup is two files: an installer.php and an archive (.zip, or .daf with its DupArchive engine).

  • Upload both files to the site's folder with SFTP or your host's file manager.
  • For a clean install, the folder must be empty apart from those two files. To replace an existing site, Duplicator calls it Overwrite Install.
  • Open yoursite.com/installer.php in a browser, enter the database details, click Validate, and follow the steps.

Duplicator's docs say Overwrite Install permanently replaces the site's files and database. The drag-and-drop Import Backup screen inside wp-admin is a Duplicator Pro feature; Lite uses the installer.

All-in-One WP Migration

  • Install the plugin on the site, then open All-in-One WP Migration, then Import.
  • Drag in your .wpress file and confirm the overwrite.

Its WordPress.org page says your host decides how big a file you can upload, so a large backup may not go through this way. The paid Unlimited Extension adds one-click Restore from the Backups page and gets around that limit.

Jetpack VaultPress Backup and BlogVault

Both keep backups on their own servers and restore from their own dashboards, so you don't need wp-admin to be working. That's the main reason I'd pick one of them for a shop. See Jetpack VaultPress Backup or BlogVault for their current plans.

How do you restore WordPress from your host's backup?

Most hosts keep their own copies and let you restore them from the control panel. On Hostinger, the steps are short.

  • Open the website's dashboard in hPanel and go to Backups.
  • Find the backup date you want and click Restore.
  • Choose Files only, Database only or Full backup, then confirm.

If you restore files and the database separately, pick the same date for both. A files folder from Monday and a database from Thursday can leave missing images and broken settings.

Two limits are worth knowing from Hostinger's docs. You can generate a manual backup once every 24 hours, and entry-level plans need a Business plan or higher for manual backups. Daily automatic backups come with the plans that include them.

On cPanel hosts, WordPress.org warns that a "full backup" is for archiving and can't be restored through cPanel itself. Restore the database from the MySQL backup download instead, or ask your host.

If your host's backups are hard to reach, it's a good reason to move. Hostinger's Business plan includes daily backups and one-click restores in hPanel.

How do you restore a WordPress site manually?

Go manual when the dashboard won't load, the plugin can't read the backup, or the file is too big to upload. You need SFTP (or your host's file manager) and either phpMyAdmin or SSH. WordPress.org's order is files first, then the database.

Infographic of the manual WordPress restore order: upload files, import the database, match wp-config.php, fix URLs with search-replace, then clear caches and test
Files first, then the database, then config, URLs and a test.

Step 1: Upload the files

Upload wp-content, wp-config.php and .htaccess from your backup, replacing what's on the server. If core files are damaged too, upload a fresh copy of the same WordPress version first.

Step 2: Import the database

In phpMyAdmin, open the database, click Import, choose your .sql file, keep SQL as the format and click Go. WordPress.org notes that a quick export restores cleanly only into a database with no tables, so empty it first unless your export included DROP TABLE.

Over SSH, either of these works. The wp db import command reads the details in wp-config.php, but the database must already exist.

bash
# From the WordPress folder
wp db import ~/backups/db-backup.sql

# Or with the mysql client
mysql -h DB_HOST -u DB_USER -p DB_NAME < ~/backups/db-backup.sql

Step 3: Match wp-config.php to the database

If you restored to a new database or a new host, update DB_NAME, DB_USER, DB_PASSWORD and DB_HOST in wp-config.php. WordPress.org adds that on a new host you need to recreate the database user, and change the password in wp-config.php if it's different.

Step 4: Fix the URLs if the address changed

Restoring to a staging subdomain or a new domain leaves the old address all over the database. WP-CLI's search-replace handles WordPress's serialized data. Run it with --dry-run first.

bash
wp search-replace 'https://old-domain.com' 'https://new-domain.com' --skip-columns=guid --dry-run
wp search-replace 'https://old-domain.com' 'https://new-domain.com' --skip-columns=guid

Step 5: Clear caches and test

Purge your caching plugin, your host's cache and any CDN. Re-save Settings, then Permalinks. Then load the homepage, a post, an image and wp-admin, and submit a form.

What if something breaks after the restore?

Most post-restore problems fall into a handful of patterns.

Infographic table of problems after a WordPress restore and their fixes: database connection error, white screen, 404 pages, old URLs, login failures and upload limits
Most post-restore errors are one of six patterns.
  • "Error establishing a database connection": the details in wp-config.php don't match the database. My guide to fixing the database connection error walks through each value.
  • A blank white page: usually a plugin or theme that doesn't match your PHP version. Work through my White Screen of Death fixes.
  • Inner pages return 404 errors: re-save Settings, then Permalinks, which rewrites the rewrite rules.
  • Images or styles load from the old address: the search-replace in Step 4 didn't run, or a cache is serving old pages.
  • You're logged out or can't log in: the restored database has older passwords. Reset yours from the login page or with wp user update.
  • The upload fails: the file is bigger than your host allows. Import over SSH instead, or ask your host to raise the limit.

If the site was hacked, a clean restore isn't the end. Change every password, update WordPress, plugins and themes, and work through my WordPress security checklist.

How do you practise a restore without risking the live site?

Restore to a copy first. A staging site, a subdomain or a local install will do, and my guide to creating a WordPress staging site covers the options.

Time how long it takes. That number is your real recovery time, and it's much better to learn it on a quiet day than during an outage. Do the same before big updates, as I suggest in my guide to updating WordPress safely.

Frequently asked questions

Can I restore only the database or only the files?▾
Yes. UpdraftPlus lets you tick single components, and Hostinger offers Files only or Database only. Restore the database for deleted posts or bad settings, and the files for a broken theme, plugin or missing images.
Will restoring a backup delete my new posts?▾
Yes, anything added after the backup date is lost when you restore the database. Copy new posts, form entries and orders somewhere safe before you start.
Can I restore a backup made by a different plugin?▾
Usually not with the free version. Free UpdraftPlus restores only UpdraftPlus backups. Use the plugin that made the backup, or restore the files and database by hand.
How do I restore WordPress if I can't log in to wp-admin?▾
Use your host's backup restore, or go manual: upload the files over SFTP and import the database in phpMyAdmin or with wp db import over SSH. Duplicator's installer.php also runs without wp-admin.
How long does a WordPress restore take?▾
It depends on the size of the site and the method. A small blog can be back in minutes with a plugin, while a large media library over SFTP can take much longer. A test restore on staging tells you your real number.
Can I use a backup to move WordPress to a new host?▾
Yes. Restore the files and database on the new host, update wp-config.php and run a search-replace if the domain changes. The full process, including the DNS switch, is in my guide to migrating WordPress to a new host.

A restore is only as good as the backup behind it, so the best time to learn these steps is before you need them. Make a backup, restore it to staging once, and write down how long it took.

If you're moving hosts rather than recovering, my guide to migrating WordPress to a new host covers the extra steps.

Share