WordPress
WordPress backups: what to back up, how often and where to keep it
A WordPress site has two parts to back up: files and database. Learn how often to back up, where to store copies and how to restore safely.

On this page
Every WordPress site will eventually have a bad update, a hacked plugin or an accidental deletion. A backup you can restore is what turns that into a minor annoyance.
What to back up
A WordPress site has two parts, and you need both to fully restore it (WordPress documentation):
- Files: WordPress core, themes, plugins, uploads,
wp-config.php,.htaccessand so on. - Database: your posts, pages, settings and comments. It is stored separately in MySQL or MariaDB, so downloading your WordPress folder does not include it.
How often
The WordPress documentation suggests weekly backups for smaller sites with fewer posts and daily backups for sites with a lot of activity. Back up before every upgrade.
Where to keep copies
Keep at least 3 to 5 recent backups in different places, for example one on your hosting server, one in cloud storage and one on your own computer. If one is lost or corrupted, another remains.
How to back up
Database. Export it as a .sql file. Common options are phpMyAdmin or your host's panel; see the official database backup guide.
Files. Download your WordPress directory over FTP or create an archive from your hosting panel; see the files backup guide.
Automatic backups. A backup plugin or your host's backup tool can do both on a schedule. Check what it actually includes: files, database or both, and where it stores them.
Order matters
- Backup: database first, then files. Keep them together as one set.
- Restore: files first, then import the database.
Test your restore
A backup you have never restored is a guess. Once, restore it on a test site or a staging copy and confirm the pages, images and admin login work.
Your host's backups
Most hosts back up the whole server, but requesting a copy takes time, and fast recovery matters. Treat the host's backups as a second line and keep your own.
Checklist
- Files and database both included
- Schedule matches how often the site changes
- Copies in at least two different places
- A backup taken before each update
- A restore tested at least once
Frequently asked questions
Does backing up my files also back up my database?
In a typical WordPress setup, no. The database lives in a separate system, usually MySQL or MariaDB, outside your WordPress folder. You export it as a file such as .sql and store it with your file backup.
How often should I back up my site?
The WordPress documentation suggests weekly backups for smaller sites with fewer posts and daily backups for high-activity sites. Always back up before an upgrade.
Is my host's backup enough?
WordPress documentation notes that most hosts back up the whole server, but requesting a copy takes time and a speedy recovery is critical. Learn to back up and restore your own site as well.
In what order do I restore a backup?
Typically restore the WordPress files first, then import the database. When backing up, do the database first and then the files, and keep them together as one set.
Sources & references
Related reading
WordPress
How to install WordPress: one-click and manual methods
Install WordPress with your host's one-click installer or manually with FTP and a database. Requirements, step-by-step instructions and a first-day security checklist.
2 min read
Web hosting
How to choose web hosting: a practical checklist for your first site
What actually matters when you pick a hosting plan: the right hosting type, server location, renewal prices, backups and support, explained without jargon.
3 min read
Web hosting
What is SSL/HTTPS and how do you get it for your website?
HTTPS encrypts the connection between visitors and your site. Learn what SSL/TLS does, how certificates are issued and the steps to enable HTTPS on your site.
2 min read