Skip to content
Free website migration on every plan, done by our team.Learn more ›
WordPress

How to back up a WordPress site (and actually restore it)

What a complete WordPress backup includes, how often to take one, where to store it, how to restore it and how to test that your backups really work.

Short answer: A full WordPress backup has two parts: the files (wp-content, uploads, themes, plugins and wp-config.php) and the database. Back up automatically, keep copies off the server, and test a restore now and then. A backup you've never restored is only a hope.

Backups are the one thing every website owner agrees on and many forget until the day they need one. A good backup turns a hack, a broken update or an accidental deletion into a ten-minute fix instead of a disaster.

What to back up

  • Database: posts, pages, settings, users, orders and comments.
  • wp-content folder: themes, plugins and uploaded media.
  • wp-config.php: database connection and security keys.
  • .htaccess and any custom files in the website folder.

WordPress core files can always be downloaded again, but including them makes restores simpler.

How often

SiteBackup frequency
Brochure site that rarely changesWeekly, and before every update
BlogDaily
Shop or membership siteSeveral times a day for the database

Keep several versions, not just the latest. If a problem went unnoticed for a week, yesterday's backup has it too.

Three ways to back up

  1. Your hosting control panel. cPanel includes backup tools, and many hosts add JetBackup with point-in-time restores. See cPanel backup and restore.
  2. A backup plugin that sends copies to cloud storage on a schedule.
  3. Manual backup: download the files and export the database with phpMyAdmin.

Use at least two of them. See the 3-2-1 backup rule.

Choosing a backup plugin

  • Backs up both files and database, on a schedule.
  • Sends copies off the server, to cloud storage you control.
  • Restores in a few clicks, ideally to a new site as well.
  • Keeps several versions and deletes old ones automatically.
  • Well maintained, with many users and recent updates.

How to restore

  1. Restore files to the website folder.
  2. Import the database through phpMyAdmin or your backup tool.
  3. Check wp-config.php has the right database name, user and password.
  4. Clear caches and test key pages, forms and checkout.

If the site was hacked, restore a backup from before the problem started and then fix the cause. See what to do if your website is hacked.

Test your backups

Every few months, restore a backup to a staging site or subdomain and click around. It's the only way to know the backup is complete. See staging sites.

A simple backup plan for a small business

  1. Rely on your host's daily backups for quick restores.
  2. Add a backup plugin that copies the site to cloud storage weekly (daily for shops).
  3. Download a full backup to your computer before big changes.
  4. Test a restore twice a year.
  5. Write down where backups are and how to restore them. See website disaster recovery.

Frequently asked questions

Does my host back up my site?

Many hosts keep server backups, but you should still keep your own copies. Check your plan's details. AuroxHost hosting plans include daily backups.

Where should I store backups?

Somewhere other than the server: cloud storage, your computer or both.

Should I back up before updating plugins?

Always. Updates occasionally break sites, and a fresh backup makes rolling back easy. See updating WordPress safely.

How big is a WordPress backup?

Mostly the uploads folder. A small business site is often a few hundred megabytes; shops with many images can be several gigabytes.

Ready when you are

Host it where it performs

NVMe speed, offshore privacy and a written SLA — live in minutes on AuroxHost.