Affiliate Disclosure: Some links on this page are affiliate links. If you purchase through our links, we may earn a commission at no extra cost to you.
Last updated: December 1, 2026 · Reading time: about 13 minutes
A WordPress backup is a saved copy of your site’s files and database that you can restore after a hack, a failed update or a server problem. To back up WordPress, use your host’s automatic backups, add a backup plugin that sends copies to cloud storage, and take a manual copy before big changes. Back up daily if you publish often, store at least one copy off the server and test a restore.
Key takeaways
- A complete backup has two parts: the files (
wp-contentandwp-config.php) and the database. - Follow the 3-2-1 rule: 3 copies, 2 types of storage, 1 copy off-site.
- Back up before every update. Daily for active sites, weekly for slow ones.
- Host backups are a good first layer, but keep your own copy too.
- A backup you never restored is a guess. Test a restore every few months.
This guide explains what a full backup contains, the main ways to make one, how often to do it, where to store it and how to test a restore. You do not need technical skills for most of it.

What does a WordPress backup include?
A WordPress backup includes the database and the files. The official WordPress handbook describes the same split: a files backup and a database backup. A backup is only complete when it saves both.
A WordPress site has two separate parts. A backup is only complete when it saves both.
1. The files
These are the WordPress core files, your themes, your plugins and the uploads folder with all your images and documents. The most important folder is wp-content, because it holds everything that is unique to your site. The core files can be downloaded again from wordpress.org, but your theme settings, plugins and media cannot.
2. The database
The database holds your posts, pages, comments, menus, users and most plugin and theme settings. If you lose the database, your site is an empty shell, even if all the files are still there. This is why “I backed up my files” is not enough.
Why do you need a WordPress backup?
You need a backup because updates fail, sites get hacked, people make mistakes and servers break. A backup turns each of these from a disaster into a short repair.
- Updates fail. A plugin or theme update can break the layout or cause a white screen of death. A backup lets you go back in minutes.
- Sites get hacked. Cleaning a hacked site is slow and uncertain. Restoring a clean backup is often faster. See our WordPress security basics to lower the risk.
- Mistakes happen. Someone deletes a page, overwrites a design or imports the wrong file.
- Hosts have problems. Servers fail, accounts get suspended and hosting companies close. Your host’s backups are on their servers, so they are not enough on their own.
How do you back up a WordPress site?
There are three ways: host backups, a backup plugin, or a manual export of files and database. The best setup uses at least two of them.
Option 1: Your hosting provider’s backups
Most good hosts take automatic backups, often daily, and let you restore from the control panel. This is the easiest start. Check three things: how many days they keep copies, whether a restore is included in your plan, and whether you can download a copy. Treat host backups as one layer, not the only one.
Option 2: A backup plugin
A backup plugin runs inside WordPress, creates a full backup on a schedule and sends it to remote storage. Well-known free options include UpdraftPlus, Duplicator and BackWPup, and there are paid tools such as Jetpack VaultPress Backup. When you compare them, look for:
- Scheduled backups for files and database separately.
- Remote storage options such as Google Drive, Dropbox, Amazon S3 or SFTP.
- One-click restore, and a way to restore to a new domain.
- Email alerts when a backup fails.
Option 3: A manual backup
A manual backup is slower, but it teaches you what is in your site and works with any host.
- Files: connect with SFTP or the host File Manager and download the whole site folder, or at least wp-content and wp-config.php.
- Database: open phpMyAdmin in your hosting panel, select your WordPress database, click Export, choose the Quick method and the SQL format, and download the file.
- Store both together and put the date in the file names.
Use this method before major changes, such as a theme switch or a move to a new host.

How often should you back up WordPress?
Back up as often as your site changes: daily for active sites and stores, weekly for slow blogs, and always before an update. Ask how much work you can afford to lose.
Match the schedule to how often your site changes. Ask: how much work can I afford to lose?
- Blog updated weekly: a full backup every week and before every update.
- Active blog or news site: daily database backup, weekly files.
- Online store or membership site: real-time or at least daily full backups, because orders and users change all the time.
- Rarely changed brochure site: weekly or monthly, and before any change.
Whatever the schedule, take a fresh backup right before updating WordPress core, a theme or a plugin.
Where should you store WordPress backups?
Store backups in more than one place, and keep at least one copy away from your server. The 3-2-1 rule is a simple way to remember this.
A well-known rule for any data is 3-2-1:
- 3 copies of your data (the live site and two backups).
- 2 different types of storage (for example the host and a cloud drive).
- 1 copy off-site, away from your server.
If a backup is stored only inside your hosting account, a server failure or a hack can remove the site and the backup together. Send at least one copy to a separate place such as Google Drive, Dropbox or Amazon S3, and secure that account with a strong password and two-factor login.
How do you restore a WordPress backup?
Restore with your host panel or plugin if you can; otherwise upload the files and import the database yourself. The steps depend on how the backup was made.
The restore steps depend on how you made the backup.
- Host backup: choose the date in the control panel and click restore. Many hosts let you restore files and database separately.
- Plugin backup: open the plugin, pick the backup set and click restore. If you cannot log in, install a fresh WordPress, add the plugin and upload the backup files.
- Manual backup: upload the files by SFTP, create an empty database, import the SQL file in phpMyAdmin, and make sure wp-config.php has the right database name, user and password.
Before restoring over a live site, save a copy of the current state. You may need something from it later.
How do you test a WordPress backup?
Restore it to a staging site or a local copy and check that pages, images and the login work.
A backup you have never restored is only a hope. Once a quarter, restore a copy to a staging site or a local install (tools such as LocalWP are free). Check that:
- The home page and a few posts open.
- Images load.
- You can log in to the admin.
- Forms, menus and your main plugins work.
Also open the backup folder from time to time and look at the file sizes. A backup that is suddenly tiny usually means something failed.
Common backup mistakes
- Backing up only the files or only the database.
- Keeping all backups on the same server as the site.
- Never checking that the scheduled backups still run.
- Keeping only one backup, which may already contain the problem you want to undo. Keep several restore points.
- Forgetting backups when moving host or changing plugins.
- Putting backup files in a public folder where anyone could download them.
A simple backup plan you can copy

- Turn on your host’s daily backups.
- Install one backup plugin and send weekly full backups to Google Drive or Dropbox.
- Take a manual backup before every big change.
- Keep at least four weekly backups and a few daily ones.
- Turn on email alerts for failed backups.
- Test a restore every three months.
With this plan, a bad update or a hack becomes a short job. If you are also worried about speed, our guide on how to speed up a WordPress site shows what to clean up, and fewer, lighter files also make backups smaller and faster.
Example: setting up a backup plugin step by step
The exact screens differ between plugins, but the steps are almost the same everywhere. Here is the path using a typical free plugin:
- Go to Plugins, Add New, search for the plugin, then install and activate it.
- Open the plugin’s settings and find the schedule tab. Set files to weekly and the database to daily. Choose how many copies to keep, for example four weekly and seven daily.
- Choose remote storage and connect your cloud account. You will sign in with Google or Dropbox and allow the plugin to save files in one folder.
- Click “Backup now” once to test the setup. Wait until it finishes and check that the files appear in your cloud folder.
- Turn on the option to email you the result of each backup.
The first backup can take several minutes on a large site. If it times out, ask your host to raise the PHP time limit or split files and database into two jobs.
What to include and what to leave out
A complete backup includes the database, the wp-content folder (themes, plugins, uploads) and wp-config.php. Some items can be skipped to save space:
- Cache folders created by caching plugins. They are rebuilt automatically.
- Old backup files stored inside wp-content, which would be copied into every new backup and make it grow.
- Unused themes and deactivated plugins. It is better to delete them from the site anyway.
Do not skip the uploads folder. Your images and documents cannot be recreated from the database.
Backups for online stores and membership sites
A store changes all day. If you restore a backup from last night, you lose the orders and customer accounts created since then. For a WooCommerce or membership site:
- Use a service that backs up in real time or at least every few hours.
- Keep a separate export of orders and customers, such as a CSV.
- Before restoring, check the order list from your payment provider so you can reconcile anything missing.
Keep your backups private and safe
A backup contains your database, which includes user emails and sometimes private data. Treat it as sensitive:
- Do not leave backup files in a public web folder. If a plugin stores backups in wp-content, make sure directory listing is off.
- Protect your cloud account with a strong password and two-factor authentication.
- Do not email backups or share them in public links.
- Delete old copies you no longer need.
How to back up WordPress from cPanel or hPanel
Most hosting panels have a backup tool, and the names differ a little between hosts.
- Log in to your hosting account and open the Backups section.
- Choose a full account backup or separate website and database backups.
- Generate the backup and wait for the confirmation. Some hosts email you when it is ready.
- Download the file to your computer, not only keep it in the panel.
If your host offers automatic backups, find out the retention time. Some keep a week of copies, others only a day or two.
How to back up the database with phpMyAdmin
- Open phpMyAdmin from your hosting panel.
- Click your WordPress database in the left list. Not sure which one? Open
wp-config.phpand look forDB_NAME. - Click Export at the top.
- Choose Quick and the SQL format, then click Export. A
.sqlfile downloads.
Store the .sql file with a copy of wp-content and wp-config.php. The date in the file name saves confusion later.
Can you back up WordPress from the command line?
Yes. If your host gives you SSH access and installs WP-CLI, the command wp db export backup.sql exports the database in one step. You can then compress the site folder with tar or zip. This is useful for developers and for scripts that run on a schedule. If you are not sure what these commands do, use a plugin instead.
Which backup method is best?
The best method combines host backups with a plugin that stores copies off-site. Host backups are easy but sit on the host’s servers. A plugin gives you control over schedule and storage. Manual backups are best before big changes.
Backup checklist by site type

Use the table as a starting point and increase the frequency if you would lose valuable work between backups.
What if your site is already hacked?
Do not restore the newest backup first. It may already contain the malware. Choose a backup from before the problem started. Then change all passwords, update everything and scan the site. Our WordPress security basics explain how to close the gaps that let attackers in. If the site shows a blank page after a restore, read how to fix the WordPress white screen of death.
Staging sites and backups
A staging site is a private copy of your site where you test updates. Many hosts create one with a single click. It is not a backup, because it usually sits in the same account, but it lowers the chance that you will need one. A good habit is to test every major update on staging, take a backup of live and then update live.
Sources and further reading
- WordPress developer handbook: Backing up your files and Backing up your database.
- Learn WordPress: How to backup your site.
- Hostinger tutorials: How to back up WordPress.
Frequently asked questions
Does WordPress back itself up?
No. WordPress core has no built-in backup. You need your host’s service, a plugin or a manual process.
How big is a WordPress backup?
It depends on your media library. A small blog can be a few hundred megabytes. Image-heavy sites are much larger. Compressing images before upload keeps backups smaller.
Are free backup plugins good enough?
For most blogs, yes. The free versions of popular plugins support scheduled backups and cloud storage. Paid versions mainly add easier restores, real-time backups and support.
How long should I keep backups?
Keep daily backups for about a week, weekly backups for a month or two and one monthly backup for a year if storage allows. The longer you keep them, the better your chance of finding a clean copy after a slow-moving problem such as hidden malware.
Can I use a backup to move my site to a new host?
Yes. Many plugins offer a migration feature. You restore the backup on the new host, update the database settings and point your domain to the new server.
Is a hosting backup enough?
It is a good start, but it is not enough alone. If the host account is suspended or hacked, the backups can be lost with the site. Keep a second copy elsewhere.
Do I need to back up if I use WordPress.com?
This guide is for self-hosted WordPress. WordPress.com paid plans include backups and restores in their dashboard. Check your plan.
What is the best free WordPress backup plugin?
UpdraftPlus, Duplicator and BackWPup are widely used free plugins. We have not benchmarked them for this guide, so choose by the features you need and read the plugin’s latest reviews and update date.
How do I know my backup worked?
Check the file size and the date, read the plugin’s success email and test a restore on a staging or local copy.
Summary
A good WordPress backup includes files and database, runs automatically, is stored in more than one place and has been tested. Use your host’s backups as a first layer, add a plugin that sends copies off-site, and take a manual copy before big changes. Ten minutes of setup now saves days of recovery later.