Quick answer: To safely restore a WordPress backup, back up the current state first, select a clean backup point, and restore your files and database via a backup plugin, your hosting panel, or manually (SFTP and phpMyAdmin). Afterwards, test all site functions, clear the cache, and fix the underlying issue or vulnerability so the problem does not happen again.
Suddenly your website is offline, displays a blank white screen, or redirects visitors to spam pages. In an emergency like this, a recent backup is worth its weight in gold—but only if you can restore it without mistakes. Many have a backup and in an emergency do not know how to deal with it, or they make mistakes under pressure that make everything worse.
In this article you will learn how to Restore a WordPress backup . You get three ways (plugin, hosting, manual), a checklist before and after the restore and solutions for typical problems. How to create backups sensibly is explained in the article Create a WordPress backup: 3 ways and the 3-2-1 rule.
When should you restore a backup?
Not every problem requires a backup. Sometimes it is enough to deactivate a plugin. You should restore a backup if:
- the site was hacked or infected with malware and a clean version exists (see WordPress hacked),
- an update destroyed the site and the error cannot be fixed quickly,
- content was deleted or overwritten by accident,
- the database is damaged,
- you want to reset the site to an earlier state, for example after a failed redesign.
For an critical error: the last backup before the update.
Preparation: what belongs before every restore
Restoring a backup overwrites the current state. So the rule is: back up first, then replace.
1. Back up the current state
Even if the website is broken or infected with malware, back up its current state completely beforehand. If your chosen backup turns out to be incomplete or corrupted, you can always roll back. In addition, you can later extract individual posts, images, or orders created after the backup timestamp from this emergency copy.
2. Choose the right version
Which backup is the right one? It should be clean and as recent as possible:
- In case of an update error: the last backup before the update.
- In case of a hack: the last backup before the time of the infection. If you do not know the time, go back step by step and check each version.
- In case of deleted content: the most recent backup in which the content was still present.
3. Put the site into maintenance mode
During the restore no visitors should change data, for example place orders or write comments. Briefly put the site into maintenance mode.
4. Have access credentials ready
Depending on the method, you will need your WordPress admin login, hosting panel access, FTP/SFTP credentials, and access to phpMyAdmin or another database tool. Have all credentials ready before you start.
Way 1: restore via a backup plugin
This is the fastest and most convenient method as long as the WordPress dashboard is still accessible.
- Log in to the WordPress dashboard and open your backup plugin (such as UpdraftPlus, WPvivid, or All-in-One WP Migration).
- Select the desired backup from the list. If it is not shown, upload the archive files from your external storage.
- Choose what should be restored: database, plugins, themes, uploads, others. For a complete restore you choose everything.
- Start the restore and wait until it is finished. Do not close the window.
- Log in again, check the site and clear the cache.
If the backend is not reachable
If the admin area is locked, you cannot launch the plugin directly from the dashboard. However, some backup solutions allow restores without a WordPress login (for example via standalone installer scripts like Duplicator's restore.php, Akeeba Kickstart, or an external cloud dashboard). Otherwise, use your hosting panel or the manual method.
Way 2: restore via the hosting
Many hosts offer backups with a restore function in the panel.
- Log in to the customer area or hosting panel.
- Look for the "Backups" area.
- Choose the date you want to restore.
- Decide whether you restore files, database or both.
- Confirm and wait for the message that the process is finished.
With some providers this is only possible via support and can cost time or fees. So ask in advance how this works for you. You will find notes on hosting options on the page Server and hosting.
Way 3: manual restore via FTP and phpMyAdmin
If plugin and hosting panel do not help, the manual way remains. It is more laborious, but it almost always works.
Restore files
- Connect to your server via SFTP.
- Back up the current folder
wp-content(for example by renaming it towp-content-alt) or download it to your computer. - Upload the folder
wp-contentfrom the backup. For a complete restore alsowp-config.phpand.htaccess. - Check file permissions: folders 755, files 644.
Restore the database
- Open phpMyAdmin and select your WordPress database.
- Export the current database for safety.
- Select all tables and drop them ("Check all", then "Drop") so no leftover data remains. If other applications share the same database, carefully delete only the WordPress tables matching your table prefix (typically wp_).
- Go to "Import" and select the SQL file from your backup. For large files you may need compression (
.sql.gz) or a tool such as BigDump. - Click "OK" and wait for the success message.
Check the credentials
If you use the wp-config.php from the backup, database name, user and password must match your current server. Especially after a move or a password change the values often no longer match. Then the message "Error establishing a database connection" appears.
The three ways compared
| Way | Requirement | Duration | Difficulty |
|---|---|---|---|
| Plugin | Backend reachable, backup available | 5 to 30 minutes | easy |
| Hosting panel | Backup at the host | 5 to 60 minutes | easy |
| Manual | FTP, phpMyAdmin, backup files | 1 to 3 hours | demanding |
After the restore: what you need to check
The site is running again? Good, but not finished yet. Go through this list:
- Home page, subpages, posts and images are displayed.
- Menus, contact forms, search and login work.
- For online stores (such as WooCommerce): test the cart, checkout, email notifications, and all payment methods with a test order. Also check whether any orders placed between the backup timestamp and the restore are missing.
- Save permalinks again (Settings, Permalinks) if pages show a 404 error.
- Clear the cache (plugin, server, CDN, browser).
- Search engine visibility is not accidentally switched off (Settings, Reading).
- HTTPS and redirects work.
Data after the backup point in time
Everything that arose after the backup is missing: new posts, comments, orders. If you backed up the current state beforehand, you can take over content from it selectively. For shops you should reconstruct missing orders from emails, payment provider and logs and inform the customers.
Fix the cause, otherwise it repeats
A backup solves the symptom, not the cause. If you change nothing, the same thing happens again.
- After a hack: Update plugins, themes and WordPress, change all passwords and keys, enable firewall and 2FA. The steps are in the articles Remove WordPress malware and WordPress vulnerabilities.
- After an update error: Find the causing plugin by applying updates one at a time and in a test environment.
- After human error: Limit user rights and enable an activity log.
- After server problems: Check hosting, PHP version and resources.
Typical problems during the restore
| Problem | Possible cause | Solution |
|---|---|---|
| Error establishing a database connection | Wrong credentials in wp-config.php |
Check database name, user, password and host |
| White screen | Error in plugin or theme, PHP version | Rename plugins via FTP, read the error log |
| 404 on subpages | Permalinks or .htaccess |
Save permalinks again, .htaccess check |
| Images missing | Uploads not transferred | Upload the uploads folder from the backup |
| Import aborts | File too large, time limit | Compress the file, raise limits or use BigDump |
| Site redirects to old address | Wrong URL in the database | URL entries in wp_options need to be corrected |
| Restored site infected | The backup already contained the hack | Choose an older version and eliminate the cause |
Restoring on a new server or domain
The same procedure also serves for a move. In addition you have to adjust the address in the database if the domain changes and update the connection details in the wp-config.php . For replacing the address use a tool that handles serialized data correctly, because simple search and replace in the SQL file can damage entries. If you do not want the effort, we take over the WordPress migration for you.
Test: practice the restore in advance
In an emergency you are stressed, and mistakes happen faster. So practice the restore once in peace, in a test environment:
- Create a subdomain or local installation.
- Restore a current backup.
- Check whether everything is right and note how long it took.
- Write down the steps, including where the credentials are stored and a contact person.
Then you know exactly what to do in an emergency, and the backup is demonstrably usable.
When you should get help
The restore is doable, but with large sites, shops and unclear errors it quickly becomes time-critical. Get help if:
- the site generates revenue and every hour of downtime costs money,
- you are not sure with database and FTP,
- the backup does not work or is incomplete,
- the site is infected again after the restore.
With the Emergency Recovery Service for $539 we bring your site back quickly and close the cause. For smaller errors there is the Error Fix service for $129. So that you have something to restore at all in an emergency, we recommend our backup service for $16 per month. An overall overview of all protective measures is provided by the security checklist.
Practical example: restore after a hack
A company site is reported as hacked on Wednesday. The redirects have been active since Monday. Tuesday's daily backup is already infected, while the backup from the Friday of the previous week is still clean. The owner first restores the Friday backup, updates all plugins and the theme, changes all passwords and enables 2FA and firewall. He takes over the two posts published in the meantime from the saved copy of the current state.
Important lesson: just because a backup is the most recent does not mean it is automatically the right one. Without several versions the restore would have been difficult.
Restoring online shops: special features
With a shop the restore is trickier, because between backup and outage there may have been new orders, customer accounts and payments. Simply restoring would delete this data.
- Back up the current state: Before restoring, export all orders, customer records, and coupon usages created since the backup timestamp (via CSV export in WooCommerce or directly from the WooCommerce order tables in the database).
- Restore the backup: Choose the suitable version and restore files and database.
- Reconcile orders: Compare the orders in the payment provider, in the email inbox and in your export with those in the system.
- Add missing orders: Import them or create them manually so that shipping and accounting are correct.
- Inform customers: Anyone who ordered between backup and outage should be told if something is missing.
- Test payment provider: Make a test order and check whether callbacks from the payment services arrive.
Partial restore: only fetch what you need
Often you do not have to restore everything. If only one part is defective, a targeted restore saves time and prevents data loss.
- Only one plugin or theme: Fetch the corresponding folder from the backup and replace it via FTP.
- Only uploads: If images are missing, the folder
wp-content/uploadsfrom the backup is enough. - Only individual posts: Restore the backup in a test environment, copy the post and paste it on the live site.
- Only individual database tables: In phpMyAdmin you can import individual tables, such as the posts table. Back up the current table beforehand.
Restore plan for emergencies
Create a short emergency plan now while everything is running. It should fit concisely on a single page and include the following:
- Where are the backups? Storage location, credentials (in the password manager), contact at the host
- Who decides? One responsible person and a deputy
- How long may the site be down? Target for the restore time, for example four hours
- How much data loss is acceptable? Target for the data state, for example at most 24 hours
- Which steps? The checklist from this article, adapted to your environment
- Who is informed? Customers, employees, host, if applicable the data protection authority
These two numbers, maximum downtime and maximum data loss, determine how often you have to back up and how fast the restore has to be. If your plan allows four hours of downtime but the manual restore takes six, you need a faster method.
Practicing a restore: the dry run before the emergency
A backup only gives peace of mind if it also works in an emergency. Many website owners only notice during an outage that the backup is incomplete or damaged. So test the restore while nothing has gone wrong yet.
To do this, set up a staging environment, that is, a copy of your website at a separate address. Restore the latest backup there and check whether everything works like on the live site. This shows you how long the restore takes and which steps are needed.
Check these points with every test:
- Home page, subpages and posts are displayed correctly
- Images and media files are completely present
- Forms, login and shop functions work without errors
- The access details for the backup storage are at hand
Write the steps down in a short guide. In an emergency, you will not have to improvise under stress—you can simply follow the steps one by one. That saves valuable time and stress when every minute of downtime costs revenue.
Repeat the dry run at least twice a year and after major changes. If you need support, we set up automatic backups and test the restore for you.
Keep at least one copy of the backup in a different place than your website, for example in external cloud storage. This way the backup survives even if the server fails completely.
Key terms around restoring
Restore
Putting a backup back onto the site. It replaces the current state with the backed-up one.
phpMyAdmin
A tool in the browser with which you can view, export and import databases. Most hosts offer it.
SFTP
An encrypted variant of file transfer. With it you upload and download files to and from the server securely.
Maintenance mode
Visitors only see a notice page. It prevents data changes during the restore.
Rollback
Resetting to an earlier state, for example after a failed update.
Migration
Moving a site to another server. Technically this is a restore on a new environment.
The key points in brief
- First back up the current state, then restore.
- Choose the right, clean version.
- Plugin, hosting panel or manual are the three ways.
- Afterwards test, clear cache, save permalinks.
- Fix the cause, otherwise the problem repeats.
Practice the restore once in peace, then you are fast in an emergency.
Conclusion
Restoring a WordPress backup works reliably in three ways: conveniently via a backup plugin, directly through your hosting panel, or manually via SFTP and phpMyAdmin. What matters most for a smooth recovery are choosing the right clean version, backing up the current state beforehand, running a thorough test afterwards, and fixing the root cause. Practicing the restore once in a staging environment saves valuable time in an emergency. If you need support, you can reach us via the Contact page, and you will find more about our services under Security.
Frequently asked questions about restoring
How long does it take to restore a WordPress backup?
With plugin or hosting panel usually 5 to 30 minutes, manually one to three hours, depending on the size of the site and the connection.
Is data lost during the restore?
Everything that arose after the backup is missing: posts, comments, orders. So back up the current state beforehand to catch up on them.
Which backup should I choose?
The most recent clean one. For a hack you go to a version before the infection, for update errors to the version before the update.
Can I restore only the database or only the files?
Yes. For deleted content the database is often enough, for defective plugins or themes the files. With both parts the restore is safest.
What to do if the backend is not reachable?
Use the one-click restore in your hosting panel, an external recovery script provided by your backup plugin, or the manual restore via SFTP and phpMyAdmin.
Why does the site look broken after the restore?
Usually it helps to clear the cache, save the permalinks again and check the credentials in the wp-config.php file.
How do I recognize whether the backup is infected?
Scan the restored site and check uploads, users and files. When in doubt choose an older version.
Can I restore a backup on another server?
Yes, that is the basis of a move. You only have to adjust credentials and, if applicable, the domain.
Do I have to change anything after the restore?
Yes: update, change passwords, fix the cause and create a fresh backup.
What does a restore by Boudmedia cost?
The emergency recovery costs $539. A single error can often be fixed with the error fix for $129.