Back up and restore WordPress
Your account is backed up every hour. Every plan can restore from any day in the last 30 days, and Business and Pro keep more. This article covers using them for WordPress, plus a quick manual copy before risky changes.
Restore from a backup
- Open Account → Hosting → your site → Backups. Restore something is at the top.
- Choose what you want back.
| Restore | Use for |
|---|---|
| Files | A deleted folder or broken plugin |
| Databases | Lost posts, a broken setting |
| Everything | A hacked site, total failure |
| Deleted mail |
- Pick a backup from before the problem began.
- Confirm, then click Start the restore.
For a WordPress site, restore both the files and the database from the same date so they match.
Take a manual backup before big changes
In your account: the WordPress section backs up your site before every update it runs for you. On Business and Pro, click Back up now on the Backups page before any other big change. On Essential, use WP-CLI below.
By hand with WP-CLI:
cd ~/public_html
wp db export ~/backups/example-$(date +%F).sql
tar -czf ~/backups/example-files-$(date +%F).tar.gz .
Download them to your computer. See Use WP-CLI.
Restore a single plugin
- Restore only that plugin's folder, such as
public_html/wp-content/plugins/contact-form-7, using Only this folder in the restore steps. It goes into a newrestored-…folder. - Delete the broken plugin in your site's Plugins list, then move the old copy from the
restored-…folder intowp-content/pluginsin Files.
What backups don't cover
- Things done after the last daily run. Take a manual copy before big work.
- Data on other services, such as payment records or email marketing lists.
If something goes wrong
- Restore finished but the site looks the same: clear LiteSpeed Cache and your browser cache.
- Database restore fails: ask support to restore it for you.
- Need an older copy than 30 days: not available. Keep your own copies of important milestones.
Still stuck? Ask us and we'll walk you through it.
