Skip to content

What a website backup is and what it contains

Up to date as of 20 November 2026

A website backup is a copy of your site, kept somewhere other than the site itself. That's the short version. The useful part is what's inside the copy.

The plain definition

One US government agency describes a backup as "a secure copy of your business's critical data, stored separately from your primary systems."1 Two ideas sit in that sentence. It's a copy, and it's stored apart from the original.

For a website, "the data" means more than the pages you can see in a browser.

Two halves, not one

WordPress's own handbook says a typical site has two parts to back up: the database and the files. You need both to fully restore a typical WordPress site.2 Other platforms differ in detail, but the idea carries over. Check your platform's documentation for its own list.

Here's how the two halves compare, using WordPress as the example.

Files Database
What's in it Core software, themes, plugins, images, code and static pages2 Posts, pages, comments and settings3
Where it lives In your site's folder on the web server4 In a separate database system, usually MySQL or MariaDB2
How it's copied Download or sync the folder4 Export it to a file2

The WordPress handbook says copying the files "usually" doesn't copy the database, because the database sits outside the site's folder.4 So a folder you've downloaded may look complete and still be missing every post.

What one backup is made ofLive websiteCopy the filesExport the databaseKeep both as one set
A full backup of a typical site has two halves kept together.

What the files half holds

The files include the look and feel of the site. The handbook puts it this way: everything to do with how the site looks and feels is in a file somewhere and needs backing up.4

That covers themes, plugins, uploaded images and the code that ties them together.2 If you've edited a theme or added a plugin yourself, those changes are in this half.

What the database half holds

The database is where the written content and settings sit: posts, pages, comments and settings.3 It isn't a folder you can open. You make a copy by exporting it into a single file, often ending in .sql.2

The page Website files and the database goes into how that export works.

What a "backup" can mean in practice

When someone says "I have a backup", they might mean any of these:

  • A zip of the site folder, with no database export.
  • A database export, with no files.
  • A full set from a host's tool, with both.
  • A backup the host keeps on its own servers, which you've never downloaded.

Only the third gives you both halves in one place. Ask which one you actually hold. The last one depends on the host, so see host backups versus your own.

Where a copy is kept matters too

The CISA definition says "stored separately". A copy sitting on the same server as the site shares that server's fate. Where backup copies should be stored covers that in detail.

A backup also only counts if it restores. Testing that a backup actually restores shows how to check.

Sources used

  1. Back Up Business Data, CISA (US Cybersecurity and Infrastructure Security Agency)
  2. Backups – Advanced Administration Handbook, WordPress Developer Resources
  3. Backing Up Your Database – Advanced Administration Handbook, WordPress Developer Resources
  4. Backing Up Your WordPress Files, WordPress Developer Resources