Worried an update could wreck your site? Here is how to backup WordPress: copy your files and your database, store copies in more than one place, and test a restore.
If you are new to running a site, our wordpress tips for beginners cover the other routine jobs worth learning early.
| Item | Value |
|---|---|
| Parts of a site to back up | 2 parts: database and files |
| Backup frequency, smaller sites | Once a week |
| Backup frequency, high-activity sites | Daily |
| Recent backups to keep | At least 3-5 recent backups |
| Typical host backup retention | 15 to 30 days |
These figures come from the WordPress Advanced Administration Handbook and Jetpack’s backup guide. They can change, so check the sources before you rely on them.
What a complete WordPress backup includes
Your site is made of two parts, files and a database, and a typical restore needs both, as the WordPress Advanced Administration Handbook explains.
The database holds every post, comment and link, but it sits in a separate system, usually MySQL or MariaDB. Downloading your WordPress folder therefore leaves it behind, so you export it to a .sql file instead, as the handbook’s files page describes.
The files side covers these items:
- The WordPress core installation
- Your plugins and themes
- Uploaded images and other media
- Your wp-config.php and .htaccess files
Core files can be replaced from a fresh WordPress download, so put your effort into wp-content and wp-config.php. The first holds your themes, plugins and uploads, and the second holds your connection details, according to the same handbook page.

Choosing a backup method: plugin, host or manual
You have three routes, and the sturdiest setup often mixes more than one.
- Backup plugin: plugins such as UpdraftPlus, which DreamHost describes as active on more than 3 million sites, run on a schedule and send copies to remote storage like Google Drive or Dropbox.
- Host backups: many hosts run them for you and let you restore from the control panel, but you should check the schedule and retention first.
- Manual backup: DreamHost notes it is free and works with any host, but it only happens when you remember to run it.
Plugins have a drawback too. Jetpack’s guide warns that some store copies on your own server, which can slow the site and leave you stuck if the server itself fails.
Jetpack’s own VaultPress Backup is one paid option: you install it and purchase a plan, according to the same guide. That means a cost, and the guide is written by a company that sells it.
Do not lean on your host alone. Jetpack’s guide says most web hosts keep your backups for 15 to 30 days, and that most hosts’ terms make you responsible for backing up your own site.
The handbook adds a practical point: hosts usually back up the whole server, but requesting a copy takes time, and a speedy recovery is critical.
No link on this page is an affiliate link. Jetpack sells a backup product, so weigh its advice with that in mind, and note that the manual and host routes cost nothing extra.
Backing up by hand with phpMyAdmin and FTP
The handbook’s typical order is to back up the database first, then the WordPress files. Follow these steps:
- Open phpMyAdmin from your host’s control panel. Panels differ, and the WordPress support article tells you to contact your host if you cannot find it.
- Click the database you created when you installed WordPress.
- Click Export, then choose Custom if you want full control.
- Select all the tables, check Save output to a file, and choose SQL as the format.
- Tick Add DROP TABLE and IF NOT EXISTS, then click Go to download the file.
- Use an FTP client to download your wp-content folder, wp-config.php and .htaccess to your computer, then zip them.
The two ticked options earn their place. The same article says Add DROP TABLE helps when overwriting an existing database, while IF NOT EXISTS prevents errors during restores if the tables are already there.
You can optionally keep the export inside the same folder or zip as the file backup, so the two stay together as one backup set, as the handbook suggests.
Sync tools such as WinSCP can keep a mirror copy of your site on your computer, as the handbook’s files page notes. A mirror only reflects the latest state, so also zip dated copies of your files to keep several versions.
How often should you back up, and where should copies live?
The handbook suggests a weekly backup for smaller sites with fewer posts and a daily one for high-activity sites. It also says to back up your database regularly and always before an upgrade.
It recommends keeping at least 3-5 recent WordPress backups in different locations. Examples are your hosting server, cloud storage such as Google Drive or Dropbox, and your local computer.
A tighter standard is the 3-2-1 rule, which DreamHost attributes to CISA. It means:
- 3 copies of important files
- 2 different types of storage media, such as a hard drive and the cloud
- 1 copy stored off-site, away from your server
The reason is simple. DreamHost notes that a backup stored only on your hosting server fails with the server, so one crash or compromise takes out the site and its safety net together.
Restoring a backup without making things worse
Restoring reverses the backup order. Per the handbook, you restore the WordPress files first, then import the database, and you update wp-config.php if you changed database credentials during a migration.
Test before you need it. DreamHost puts it bluntly: an untested backup is not a backup, and it advises running a test restore on a schedule, ideally into a staging copy of the site.
If the site was hacked, the order changes. DreamHost advises you to contain the compromise and patch the hole first, then restore from a copy made before the intrusion. Our guide to wordpress security is a sensible next read for closing those holes.
Backups are also part of the platform decision. Jetpack’s guide says most hosts’ terms put backup responsibility on you, so our wordpress vs wix comparison may help you weigh that trade-off.
Frequently asked questions
Should I take a backup before updating plugins or themes?
Show answer
Yes. DreamHost recommends an extra copy right before any big change, such as a major plugin update, a theme swap or a WordPress core upgrade.
Are full or incremental backups better for a small site?
Show answer
For most small sites, DreamHost says scheduled full backups are the right choice because storage is cheap and restores stay simple. Incremental copies are smaller, but a restore needs the last full backup plus every increment after it.
Is a server snapshot enough on its own?
Show answer
No. DreamHost explains that a snapshot usually lives on the same platform as your site, so a platform failure or account compromise can remove both together. Treat it as a quick rollback tool alongside independent backups.
Can I trust automatic backups to keep working?
Show answer
Mostly, but verify them. The handbook highly recommends making a manual backup once in a while, to guarantee the automated process is really working.



