Back up and restore WordPress

backup, restore, database, files · 0 found this helpful

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

  1. Open Account → Hosting → your site → Backups. Restore something is at the top.
  2. 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
Email Deleted mail
  1. Pick a backup from before the problem began.
  2. Confirm, then click Start the restore.
The backups you can restore, and your plan's schedule

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

  1. 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 new restored-… folder.
  2. Delete the broken plugin in your site's Plugins list, then move the old copy from the restored-… folder into wp-content/plugins in 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.

Was this helpful?

Still stuck? Ask us and we'll walk you through it.