Worried one bad update could wipe out your site? Here is how to backup a wordpress site: copy both the database and the files, store copies in several places, and test a restore.
This guide is part of the wordpress tips collection, which covers routine maintenance for site owners.
| Item | Value |
|---|---|
| Backups to keep | At least 3-5 recent WordPress backups, in different locations |
| Schedule for smaller sites | Once a week |
| Schedule for high-activity sites | Daily |
| 3-2-1 rule | 3 copies on 2 different types of storage media, with 1 copy stored off-site |
| Backup order | Database first, then the WordPress files |
| Restore order | WordPress files first, then the database |
These figures come from the WordPress Advanced Administration Handbook and DreamHost’s backup guide. They can change, so check the sources before you rely on them.
What a complete WordPress backup includes
A WordPress site has two parts, and you need both to bring it back. The database holds your content, and it is stored in a separate system, usually MySQL or MariaDB, as the WordPress handbook explains. The same page notes that it contains every post, every comment and every link on your blog.
The files are the second half. According to the handbook, they cover:
- The WordPress core installation
- Your themes and plugins
- Uploads such as images and documents
- Configuration files like wp-config.php and .htaccess
Saving only one half leaves you stuck. IONOS puts it plainly: if you need to restore a WordPress site, it’s not enough to simply back up all files.
Treat the two as one backup set created around the same time. The handbook suggests exporting the database first, then copying the files, and keeping the export in the same folder or zip.
Three ways to back up a WordPress site
You can use your host, a plugin, or do it by hand. DreamHost lists the same three routes, so pick the one that matches your comfort level.
- Host backups: some web hosts back up sites on a schedule and let you restore from the control panel, per DreamHost. The handbook warns that requesting a copy from the host takes time, and a speedy recovery is critical.
- Backup plugins: DreamHost notes that plugins such as UpdraftPlus (active on more than 3 million sites) run on a schedule and send copies to remote storage like Google Drive, Dropbox, or Amazon S3.
- Manual backups: download the files over SFTP and export the database. It’s free and works with any host, but it only happens when you remember to run it, says DreamHost.
A manual backup, step by step
- Connect to your site over SFTP, or open File Manager in cPanel, and download or compress the whole WordPress directory.
- Open phpMyAdmin from your hosting panel, select your WordPress database and use the Export tab to download it as an SQL file.
- Put the export and the file archive in one dated folder so they stay together.
- Copy that folder to a second location, such as cloud storage.
The handbook adds that compressing files into a zip saves space and lets you keep several versions.
This site may use affiliate links in hosting, theme and plugin recommendations, and always discloses them. Rankings rest on tested features, price and support, never on commission, and this guide contains no affiliate links.
Where to store copies and how often to run them
The handbook recommends keeping at least 3-5 recent WordPress backups, with copies stored in different locations. Its example spreads them across three places:
- One on your hosting server
- One on cloud storage such as Google Drive or Dropbox
- One downloaded to your local computer
A copy that lives only on the hosting server fails with the server. DreamHost calls CISA’s 3-2-1 rule the standard fix: 3 copies on 2 different types of storage media, with 1 copy stored off-site.
Frequency should follow how often your content changes. The handbook suggests smaller sites back up once a week and busy ones daily. DreamHost adds an extra copy right before any big change, such as a major plugin update, a theme swap, or a WordPress core upgrade.
On format, DreamHost says scheduled full backups suit most small sites, since storage is cheap and restores stay simple. It also stresses that a server snapshot complements a backup and doesn’t replace one.

How do you restore a WordPress site from a backup?
Restoring reverses the backup order. The handbook says to restore the WordPress files first, then import the database. If you changed database credentials during a move, update wp-config.php to match.
- Choose the backup set made before the problem started.
- Upload and extract the files, replacing the damaged ones.
- Open phpMyAdmin, select the database and use the Import tab with your SQL export.
- Check the credentials in wp-config.php.
- Clear any caches, then browse the site and test logins and forms.
DreamHost notes that your host or backup plugin may offer a one-click restore, while the manual route is re-uploading your files over SFTP and re-importing the database.
After a hack, go slower. DreamHost advises you to contain the compromise, patch the vulnerability and rotate affected passwords before restoring a copy made before the intrusion. Our guide on how to secure a wordpress site covers those hardening steps.
Test your backups before you need them
A file you have never restored is only a hope. DreamHost relays CISA’s guidance to test full and partial restores on a schedule, ideally into a staging copy of the site.
Automation needs a check too. The handbook highly recommends a manual backup once in a while, to guarantee the automatic process is working.
The stakes are real: DreamHost cites ransomware in 44% of the breaches Verizon investigated for its 2025 Data Breach Investigations Report. It also says CISA, the FBI, and the NSA recommend offline, encrypted backups, in a guide updated September 2023.
If maintenance like this sounds heavy, the comparison of wordpress vs wix can help you weigh platforms before you commit.
Frequently asked questions
How often should I back up WordPress?
Show answer
Match the schedule to how quickly your content changes. A quiet brochure site can manage with a weekly copy, while a busy blog or shop is better served by daily ones. Always add a fresh copy before updating anything.
Do I need to back up the database separately?
Show answer
Yes. Your posts and comments sit in MySQL or MariaDB rather than in the folder you download over SFTP, so export them too, usually through phpMyAdmin.
Is my host’s backup enough on its own?
Show answer
Rarely. Host copies can be slow to request, and their schedule and retention may not suit you, so keep an independent set in cloud storage as well. See the handbook for why speed matters.
Can a plugin handle everything for a beginner?
Show answer
For most beginners, yes. A plugin can schedule backups, send them offsite and restore them in a few clicks. Run an occasional manual copy and a test restore anyway.



