Maintenance

How to back up a WordPress site

A WordPress backup is a copy of two separate things: the database, which holds your posts, settings, users and orders, and the files, which hold uploads, themes and plugins. A backup missing either one will not restore a working site.

The manual way

How to do it in WordPress

  1. Export the database. In your hosting control panel, open phpMyAdmin, select your site's database, and use the Export tab. The Quick method with SQL format is right for most sites. The download you get is a .sql file containing every post, page, user, setting and order on the site.
  2. Download the files. Connect over FTP, SFTP or the host's file manager and download the site's root directory. The essential folder is wp-content, which holds your uploads, themes and plugins — core files can be re-downloaded from WordPress.org, but nothing replaces your uploads.
    wp-content/uploads/   ← your media, irreplaceable
    wp-content/themes/    ← including any customisations
    wp-content/plugins/
    wp-config.php         ← database credentials and salts
  3. Store it somewhere else entirely. A backup on the same hosting account is not a backup — it shares a fate with the site. If the server fails, the account is suspended, or an attacker gains write access, both copies are gone together. Off-site means different infrastructure with separate credentials.
  4. Restore it somewhere and confirm it works. This is the step that separates a backup from an assumption. Restore to a staging site: import the .sql file into an empty database, upload the files, update the credentials in wp-config.php, and load the site. Truncated exports and missing uploads only ever reveal themselves here.

Worth knowing: Retention matters as much as frequency. Compromises and content damage are often discovered weeks after they happen, and seven days of backups is no use if the problem started on day nine. Thirty days of daily backups, with monthly copies kept longer, covers the realistic cases.

The plugin way

If you do this regularly

A backup plugin automates all of the above on a schedule and pushes copies to off-site storage such as S3, Dropbox or Google Drive. That is the right answer for most sites. Configure it to include both database and files, verify the off-site destination is actually receiving them, and check the retention window is long enough to reach a clean copy.

One caveat: Many hosts also take their own backups. Treat those as a convenience rather than your backup strategy: retention is often short, they are stored on the same provider, and you may not be able to restore a single file rather than the whole account.

The fast way

Or just say it.

Backups are easy to configure and easy to leave silently failing. Asking for one before a risky change is the case where you want it confirmed, not assumed.

You say

Back up all client sites before tonight's plugin updates and confirm each one completed.

What changed
+ 11 sites queued for backup
+ Database + wp-content captured per site
+ Pushed to off-site storage — 11/11 verified
! staging.clientsite.com skipped — excluded from routine

For a change you made deliberately, a snapshot is the faster instrument: reversing one action costs nothing, while restoring a backup costs everything written since. How undo works.

At scale

Doing this across multiple sites

Across a portfolio the failure is rarely that backups were not configured — it is that one site's job has been failing silently for three months and nobody noticed until it was needed. What matters at scale is not running backups but verifying every site actually produced one.

Related: Recovering a hacked site · Support plans and response times

Questions

How to back up a WordPress site: questions

What do I need to back up in WordPress?

Both the database and the files. The database holds posts, pages, users, settings, comments and WooCommerce orders. The files hold your uploads, themes and plugins. Restoring one without the other gives you a site that loads and is missing everything that matters.

How often should I back up a WordPress site?

Match it to how much work you are willing to lose. A brochure site updated monthly is fine with weekly backups. A blog publishing several times a week wants daily. A store taking orders continuously needs at least daily, because orders cannot be reconstructed from the front end.

Are my host's backups enough?

Usually not on their own. Retention is often only a few days, the copies sit with the same provider as the site, and restores are frequently all-or-nothing rather than letting you recover a single file or table. They are a useful second copy, not a strategy.

How do I know my backup actually works?

Restore it. A meaningful share of backup configurations fail on first restore — truncated database exports, excluded uploads directories, plugin data stored in tables the export missed. Restoring to a staging site once a month is the only way to convert a backup from a hope into a fact.

Know every site actually backed up.

Run and verify backups across your portfolio, and get told which site failed rather than finding out later.

Start free