Skip to content
Daleel Web

WordPress

WordPress backups: what to back up, how often and where to keep it

A WordPress site has two parts to back up: files and database. Learn how often to back up, where to store copies and how to restore safely.

By Daleel Web Editorial TeamPublished 2 min read
A folder and a database icon being copied to cloud storage

Every WordPress site will eventually have a bad update, a hacked plugin or an accidental deletion. A backup you can restore is what turns that into a minor annoyance.

What to back up

A WordPress site has two parts, and you need both to fully restore it (WordPress documentation):

  • Files: WordPress core, themes, plugins, uploads, wp-config.php, .htaccess and so on.
  • Database: your posts, pages, settings and comments. It is stored separately in MySQL or MariaDB, so downloading your WordPress folder does not include it.

How often

The WordPress documentation suggests weekly backups for smaller sites with fewer posts and daily backups for sites with a lot of activity. Back up before every upgrade.

Where to keep copies

Keep at least 3 to 5 recent backups in different places, for example one on your hosting server, one in cloud storage and one on your own computer. If one is lost or corrupted, another remains.

How to back up

Database. Export it as a .sql file. Common options are phpMyAdmin or your host's panel; see the official database backup guide.

Files. Download your WordPress directory over FTP or create an archive from your hosting panel; see the files backup guide.

Automatic backups. A backup plugin or your host's backup tool can do both on a schedule. Check what it actually includes: files, database or both, and where it stores them.

Order matters

  • Backup: database first, then files. Keep them together as one set.
  • Restore: files first, then import the database.

Test your restore

A backup you have never restored is a guess. Once, restore it on a test site or a staging copy and confirm the pages, images and admin login work.

Your host's backups

Most hosts back up the whole server, but requesting a copy takes time, and fast recovery matters. Treat the host's backups as a second line and keep your own.

Checklist

  • Files and database both included
  • Schedule matches how often the site changes
  • Copies in at least two different places
  • A backup taken before each update
  • A restore tested at least once

Frequently asked questions

Does backing up my files also back up my database?

In a typical WordPress setup, no. The database lives in a separate system, usually MySQL or MariaDB, outside your WordPress folder. You export it as a file such as .sql and store it with your file backup.

How often should I back up my site?

The WordPress documentation suggests weekly backups for smaller sites with fewer posts and daily backups for high-activity sites. Always back up before an upgrade.

Is my host's backup enough?

WordPress documentation notes that most hosts back up the whole server, but requesting a copy takes time and a speedy recovery is critical. Learn to back up and restore your own site as well.

In what order do I restore a backup?

Typically restore the WordPress files first, then import the database. When backing up, do the database first and then the files, and keep them together as one set.

Sources & references

  1. WordPress Developer Resources: Backups
  2. WordPress Developer Resources: Backing Up Your Database
  3. WordPress Developer Resources: Backing Up Your WordPress Files