Skip to content

Reader-supported: we may earn a commission when you buy through our links. Learn more

PerkLantern

Guide

How to Back Up a WordPress Site (2026): What to Save, How Often, and How to Restore

A WordPress backup needs two parts — the database and the files. What to include, how often to back up, how many copies to keep and where, four ways to do it, and the restore order, based on WordPress's own administration handbook.

By Võ Nhật Quốc KhánhUpdated Dec 2, 2026Independent research — not hands-on tested

PerkLantern may earn a commission when you buy through links on this page, at no extra cost to you. How we make money

Short answer: a WordPress backup has two parts — the database and the files — and you need both to restore a site. Back up weekly for a small site and daily for a busy one, always before updates, keep 3–5 recent copies in different places, and test a restore now and then. To restore: files first, then the database.

What a WordPress backup needs. Database: posts, pages, comments and settings. Files: wp-content with themes, plugins and uploads, plus wp-config.php and .htaccess; WordPress core can be re-downloaded. How often: weekly for small sites, daily for busy ones, always before an update. Keep 3 to 5 copies in different places: on the server, in cloud storage, and on your computer

What a backup must include

WordPress's administration handbook is clear that the database and files are separate, and "you need both to be able to fully restore a typical WordPress site."

  • The database holds your posts, pages, comments, users and settings.
  • The files hold everything else. The handbook calls these "the important files":
    • wp-content/ — your themes, plugins and uploaded media;
    • wp-config.php — your database connection details and settings;
    • .htaccess — rewrite rules, if your server uses Apache.

WordPress core files can be re-downloaded, so they matter less — but backing up the whole WordPress directory is the simplest way not to miss anything.

How often, and how many copies

From the handbook:

  • Back up regularly, and always before an upgrade.
  • Roughly once a week for small sites; daily for high-activity sites.
  • Keep at least 3–5 recent backups.
  • Store them in different places — for example the hosting server, cloud storage like Google Drive or Dropbox, and your own computer.
  • Even if backups are automatic, make a manual one occasionally to make sure the process actually works.

A store that takes orders all day needs more frequent database backups than a blog that changes weekly — match the schedule to how much you'd lose between backups.

Four ways to back up

MethodHowGood for
Your host's backupsAutomatic snapshots and one-click restore in the hosting dashboardEasiest option; check frequency and retention
A backup pluginSchedules database and file backups, can send them to cloud storageShared hosting, off-host copies
Manual (SFTP + phpMyAdmin)Download files over SFTP; export the database as SQL in phpMyAdminOccasional manual copies
Command linemysqldump for the database, archive the filesDevelopers, large databases

Two tips from the handbook: on cPanel, use "Download a MySQL Database Backup" rather than a full cPanel backup, which "cannot be restored via cPanel"; and phpMyAdmin struggles with large databases, so use command-line tools for those. A command-line database export looks like:

mysqldump --add-drop-table -h DB_HOST -u DB_USER -p DB_NAME | gzip > site-backup.sql.gz

How to restore

Restore order. Step 1: restore the files, including wp-content and wp-config.php. Step 2: import the database; importing replaces the current database. Step 3: if the database name, user or password changed, update wp-config.php. Step 4: check the site, log in and test key pages

  1. Restore the files (wp-content, wp-config.php, .htaccess).
  2. Import the database. In phpMyAdmin: Import → choose the SQL file → Go. The handbook warns this "will replace your current database."
  3. Update wp-config.php if the database name, user or password changed (common after moving hosts).
  4. Check the site: log in, open key pages, and for a store, test the cart.

How managed hosts handle backups

Most managed hosts automate this. On Cloudways Flexible servers, for example, backups are automated with on-demand backups and one-click restore, and off-site backup storage is billed at $0.033 per GB. Even then, keep your own copy off the host — the handbook's "different places" rule applies to everyone. Our managed WordPress hosting explainer covers what else a host takes off your hands, and moving WordPress to Cloudways uses the same files-plus-database idea to migrate a site.

See Cloudways plans

Quick backup checklist

  • Database and files (wp-content, wp-config.php, .htaccess)
  • Weekly (small site) or daily (busy site), plus before every update
  • 3–5 recent copies
  • Copies in at least two places, one off the host
  • A test restore on a staging copy every few months

Our take

Backups are only as good as your last successful restore. Automate them, keep copies off your host, and practise a restore on staging before you need it for real.

Based on WordPress's Advanced Administration Handbook. PerkLantern is a Cloudways affiliate and may earn a commission if you sign up through our links, at no extra cost to you.

Sources

All accessed December 2, 2026.

  • WordPress Advanced Administration Handbook: Backups (what to back up, frequency, copies, storage, restore order)
  • WordPress Advanced Administration Handbook: Backing up your database (phpMyAdmin, cPanel, mysqldump, restore warnings)
  • WordPress Advanced Administration Handbook: Backing up your WordPress files (important files, FTP)
  • Cloudways: Pricing (automated backups, off-site storage price)

Frequently asked questions

What do I need to back up in WordPress?

Two things: the database (posts, pages, comments, settings) and the files. WordPress's handbook calls wp-config.php and the wp-content folder (themes, plugins and uploads) the important files; also keep .htaccess. WordPress core itself can be re-downloaded.

How often should I back up WordPress?

WordPress's handbook suggests about once a week for small sites and daily for busy sites with frequent posts, and always before an upgrade. Keep at least three to five recent backups.

Where should I store WordPress backups?

In more than one place. The handbook suggests keeping copies on the hosting server, in cloud storage such as Google Drive or Dropbox, and on a local computer, so one failure doesn't take every copy with it.

How do I restore a WordPress backup?

Restore the files first, then import the database. If the database name, user or password changed — for example after moving hosts — update wp-config.php to match. Importing a database in phpMyAdmin replaces the current database, so be sure you're restoring the right copy.