When a site breaks after an update, gets hacked or loses content, restoring a backup is often the fastest way back. The process depends on where your backup is stored and whether WordPress is still working. This guide covers the methods I use, from one-click host restores to manual restores when nothing else works.
Choose the right backup
Identify when the problem started and choose the most recent backup from before that time. For a failed update, the backup taken just before updating is ideal. For a hack, choose a backup from before the infection, which may be days or weeks earlier.
Remember that restoring an older backup removes changes made since then, such as new posts, orders or users. For stores, note any orders received after the backup so they can be re-entered or recovered.
Back up the current state first
Before restoring, take a backup of the current site, even if it is broken. It may contain recent content or orders you need to recover, and it lets you return to this point if the restore causes new problems.
For hacked sites, keep the infected backup separate and clearly labelled so it is not restored by mistake.
- 1Pick backupBefore the problem
- 2Save current stateEven if broken
- 3RestoreHost, plugin or manual
- 4Clear cachesTest key pages
- 5Fix root causeUpdates, passwords
Restoring with your host
Many hosts offer one-click restores from their dashboard or cPanel tools such as JetBackup. Choose the date, decide whether to restore files, database or both, and start the restore. This is usually the quickest method.
Some hosts restore to a staging site first, letting you check the backup before applying it to live. Use this option where available.
Restoring with a backup plugin
If WordPress still works, use your backup plugin’s restore feature. UpdraftPlus, for example, lists backups and lets you choose components to restore: database, plugins, themes, uploads and other files. Follow the prompts and wait until it finishes.
If backups are stored remotely, the plugin downloads them first, which can take time for large sites.
Restoring with an external service
Services such as BlogVault and Jetpack VaultPress Backup can restore from their dashboards, often even if WordPress is down, by connecting to your server via SFTP. Enter server credentials if required and choose the restore point.
These services are especially helpful when the site is completely broken or the admin area is inaccessible.
Manual restore: files
If automated tools are not available, restore manually. Download the backup files, connect to the server with SFTP or the host’s file manager, and replace the WordPress files, especially wp-content and wp-config.php, with those from the backup.
For hacked sites, delete existing WordPress files and upload clean copies of core files from WordPress.org, then restore only wp-content from a clean backup, to avoid leaving malicious files behind.
Manual restore: database
Open phpMyAdmin from your hosting panel, select the WordPress database, and import the database backup file. For large databases, use command-line tools or your host’s import tools, as browser uploads may time out.
If you import into an empty database, check that wp-config.php has the correct database name, user and password. See fixing database connection errors.
After restoring
Clear all caches, including plugin, server and CDN caches. Check the homepage, key pages, login, forms and checkout. Look for missing images or broken layouts that suggest incomplete files.
Log in and check that recent settings are correct. Re-save permalinks under Settings > Permalinks if pages return 404 errors.
Recover recent content
If the backup is older than recent changes, recover new content manually. Posts can be copied from the saved current backup, and orders can be exported from the payment provider or re-entered. Some backup tools allow restoring specific tables or items.
For stores, communicate with customers whose orders may be affected, and check payment provider records.
If the restore was after a hack
Restoring a clean backup removes malware but not the vulnerability that allowed the attack. Update WordPress, plugins and themes, remove unused plugins, change all passwords and security keys and scan the site.
Follow what to do when your WordPress site is hacked to make sure the site is not reinfected.
Common restore problems
Restores can fail due to timeouts, insufficient disk space, incomplete backups or version mismatches. Large restores on shared hosting may need help from your host. If a restore fails partway, restore again or use manual methods.
Test backups regularly so you discover these problems before an emergency.
Prevent the next emergency
Keep regular backups with off-site copies, test restores twice a year, update safely on staging and monitor uptime. A documented restore process saves valuable time under pressure.
See a backup strategy that works and how to update WordPress safely.
Getting help
If your site is down and you need it restored quickly, contact me or message me on WhatsApp. Restores, backups and recovery are part of my website protection service.
For choosing backup tools, read WordPress backup plugins compared.
Key takeaways
- Choose the latest backup from before the problem started.
- Back up the current broken state before restoring.
- Use host or service restores first; restore manually if needed.
- After a hack, fix the vulnerability or the site may be reinfected.
Frequently asked questions
Will restoring delete recent content?
Yes, changes after the backup are lost unless recovered from the current state.
Can I restore only the database?
Yes. Most tools let you restore files and database separately.
How long does a restore take?
Minutes for small sites; longer for large sites or slow storage.
What if I have no backup?
Ask your host; they may have one. Otherwise, recovery depends on what remains on the server.
Why are images missing after restore?
The uploads folder may not have been restored completely.
Should I restore to staging first?
If possible, yes, to check the backup before applying it to live.
Can I restore a single page or post?
Some backup tools and hosts allow item-level restores. Otherwise, restore to staging and copy the content you need to the live site.
