To restore WordPress from a backup, first confirm the backup holds both site files and the database. Then use your host’s restore tool, a backup plugin, or a manual upload of files plus a .sql database import through phpMyAdmin. Finally, test login, pages, media, forms and permalinks.
Your site may be broken, hacked or damaged by a bad update, and you want it back safely. This guide helps you pick the right method, check the backup before you start, and confirm everything works afterwards.
Key takeaways
- A complete WordPress backup needs both the site files and the database; a backup with only one of them cannot fully restore your site.
- Restoring replaces your current files and database, so anything added after the backup date can be lost unless you save a copy of the current site first.
- If your host offers a staging site, test the restore there before overwriting the live site.
- Choose the method by situation: host tool if your host keeps backups, plugin if you can log in to wp-admin, manual if you cannot.
- A restore is only as good as the backup behind it, so keep a recent copy that you control.
Which restore method should you use?
Use your host’s restore tool if your host keeps backups, a backup plugin if you can still log in to wp-admin, and a manual restore if neither option works. Restoring means replacing your site’s current files and database with a saved copy, which returns the site to the state it was in when the backup was made.
Quick decision guide
| Your situation | Best method |
|---|---|
| Your host keeps backups and you cannot log in | Host restore tool |
| You can log in and have a plugin backup | Backup plugin |
| Host tool and plugins are not an option, or wp-admin is unreachable | Manual restore (files plus .sql import) |
What a restore actually overwrites
A restore overwrites your current files and database. Anything added after the backup date, such as new posts, comments or orders, can be lost unless you save a copy of the current site first. The next sections show how to do that.
What does a WordPress backup contain?
A complete WordPress backup contains two parts: the site files and the database. A backup with only one of them cannot fully restore your site.
Files
The files include your themes, plugins, uploads (images and documents) and wp-config.php. If the files are missing, your design, plugins and media will not come back.
Database
The database holds your posts, pages, settings, orders and users. If you restore files without the database, you may see an empty or outdated site. If you restore the database without the files, posts may appear but images and layouts may be missing.
Backups usually come as a zip of files plus a .sql database export, or as a single package created by a plugin.
What should you check before you restore?
Before restoring, confirm the backup is the right one, save the current site, and make sure you have the access you need. Work through this checklist:
- Check the backup date and file size.
- Confirm it includes both files and the database.
- Make sure the archive opens without errors.
- Take a copy of the current broken site.
- Put the site in maintenance mode if possible.
- Note recent changes you will need to redo.
- Confirm you can access your host panel, SFTP or File Manager, and phpMyAdmin.
Check the backup file
A backup that is far smaller than you expect may be incomplete. Try opening the zip and look for the wp-content folder and a .sql file. If the archive will not open, do not rely on it.
Save the current site first
Download the current files and export the current database, even if the site is broken. This lets you go back, or recover recent posts and orders after the restore.
Test on staging if you can
If your host offers a staging site, test the restore there before touching the live site. In the Kinsta guide to restoring WordPress from a backup, restoring to Live overwrites the production site. Restoring to Staging asks you to confirm by typing the site name, and it overwrites any existing staging site or creates one if none exists.
How do you restore WordPress using your host’s tool?
You restore through your host by opening the backups section of the hosting dashboard, choosing a backup date and confirming the restore. This is often the fastest route, especially when you cannot log in to wp-admin.
- Log in to your hosting dashboard.
- Open the Backups section.
- Pick the backup date you want.
- Choose the restore target: live or staging.
- Confirm the restore.
- Wait for it to finish, then test the site.
As an example, in MyKinsta you open the Backups tab and use the “Restore to” button. Button names differ by host, so check your host’s documentation. Hosts that use cPanel may offer backup or restore tools with separate options for files and databases.
Restore to staging first
Where staging is available, restore there first. Review the site, then push it live only when you are happy with it.
If your host has no backups
Some hosting plans do not include backups, or the available ones are too old. In that case, use a backup you stored yourself with the plugin or manual method below.
How do you restore WordPress with a backup plugin?
You restore with a plugin by opening its restore screen, selecting or uploading the backup, choosing what to restore and running it. The prerequisite is that you can reach wp-admin, or can reinstall WordPress and the plugin on a fresh install.
- Open the backup plugin’s restore screen.
- Select the backup, or upload the backup file.
- Choose what to restore: files, database or both.
- Run the restore.
- Log in again, as your session may end.
Large backup files may hit upload size or PHP limits. If an upload fails, ask your host about raising those limits. Button names differ between UpdraftPlus, Duplicator and other plugins, so follow each plugin’s own documentation.
A plugin restore only works if you made a backup before the problem started. Backup Manager is a WordPress plugin for keeping backups you control, priced at ₹1,500.00. If you are comparing options, see our guides to a WordPress backup and restore plugin and the best site backup plugin for WordPress.
If you cannot log in to wp-admin
Reinstall WordPress on a fresh install, add the backup plugin, then upload your backup file in its restore screen. If that is not possible, use the host tool or the manual method.
How do you restore WordPress manually?
A manual restore means uploading the backup files yourself and importing the .sql file into the database through phpMyAdmin. Use it when the host tool and plugins are not an option, for example when wp-admin is unreachable. Back up the current files and database before deleting or overwriting anything.
Restore files
- Extract the backup on your computer.
- Connect through SFTP or open your hosting File Manager.
- Upload the WordPress files to your site’s folder, replacing the existing ones.
Import the database
- Open phpMyAdmin from your hosting panel.
- Select your site’s database, or create a new one.
- Use the Import tab and choose the .sql file.
- Run the import and wait for the success message.
Check wp-config.php
Make sure the database name, username, password and host in wp-config.php match the database you imported into. A mismatch causes a database connection error.
Large imports can time out. If that happens, ask your host for help or for a change to the import limits.
How do you check the site after restoring?
After restoring, log in to wp-admin, view your key pages and test anything that matters to your business. A restore can finish without errors and still leave small problems.
Quick test list
- Log in to wp-admin.
- View the homepage and key pages.
- Check images and media.
- Re-save permalinks under Settings, then Permalinks.
- Test contact forms, checkout and any customer logins.
- Check plugin and theme versions.
- Clear caches.
- Confirm SSL works.
- Make sure search engines are not blocked in Settings, then Reading.
- Re-create any content or orders added since the backup date.
If your site was hacked, restoring is only the first step. Our WordPress Security Report 2026 covers the wider security picture.
Why did the restore fail, and how do you avoid needing this again?
Most failed restores come from upload limits, wrong database details, conflicts, or a backup older than expected. Holding your own recent backup lowers the risk of all of these.
Common errors and fixes
- Upload size limit error: ask your host to raise the limit, or use the manual method.
- Error establishing a database connection: check the database details in wp-config.php.
- White screen: a plugin or theme conflict, or an incomplete restore. Re-run the restore or disable plugins by renaming the plugins folder.
- Missing recent posts: the backup was older than expected. Re-create the content or try a newer backup.
Be ready for next time
Host backups may be missing, too old or unavailable when you need them most. A recent backup that you control means you are not waiting on anyone else.
Backup Manager is a WordPress plugin in the Plugins category, priced at ₹1,500.00, with 1, 3 or 5 year validity. Get Backup Manager from its product page so a recent backup is ready next time.
Frequently asked questions
Can I restore WordPress without a plugin?
Yes. You can use your host’s restore tool, or restore manually by uploading files through SFTP or File Manager and importing the .sql file in phpMyAdmin.
Will restoring a backup delete my current content?
Yes, a restore replaces your current files and database. Anything added after the backup date can be lost, so save a copy of the current site first.
How do I restore WordPress if I can’t log in to wp-admin?
Use your host’s restore tool, or restore manually. You can also reinstall WordPress and a backup plugin, then upload the backup.
How do I check that my backup file is complete?
Check the date and file size, then open the archive. Confirm it contains the site files, including wp-content, and a database export such as a .sql file.
How do I restore a WordPress database from a .sql file?
Open phpMyAdmin, select your site’s database, choose the Import tab, select the .sql file and run the import. Then check that wp-config.php matches the database details.
How often should I back up my WordPress site?
It depends on how often your content changes. A site with frequent posts or orders needs more frequent backups than a mostly static one. Always keep a recent copy you control.
Next step
Pick the method that fits your situation, check the backup first, and test the site afterwards. To avoid scrambling next time, get Backup Manager and keep a recent backup ready.


