Hi everyone, it’s me again. In my post What is a database? I briefly mentioned backing up your data. Today I’ll go deeper into that: how to back up a WordPress website and restore it when something goes wrong.
This is the first post in a series about looking after your website after handover. If I could pick only one thing to do after receiving a website, I’d pick backups. With a good backup, a hacked site, a failed update or an accidental deletion takes just a few minutes to a few dozen minutes to recover. Without one, you may have to rebuild from scratch.
I used to be careless myself and didn’t back up the database, and things got pretty messy, haha.
Why do you need to back up your website?
Many people think that if their website is running fine, there’s nothing to worry about. But in my years in this job I’ve seen all kinds of incidents, and almost none of them came with a warning:
- A plugin or theme update goes wrong, and the website goes blank or the layout breaks.
- The website gets hacked, injected with malware or strange links, or the homepage gets defaced.
- Accidental deletion of a post, page, product or even a whole folder of images.
- The hosting has a problem, or you forget to renew and the provider deletes your data.
- Moving to new hosting or changing your domain, when you need a complete copy to take with you.
In all of these cases, a backup is what saves you fastest.
What does a WordPress backup include?

A WordPress website has 2 separate parts, and a complete backup must include both:
- Source code and files: stored on your hosting. The most important are the
wp-contentfolder (which holds your uploaded images, themes and plugins) and thewp-config.phpfile (which holds the database connection details). - The database: holds the content of your posts, pages, products, orders, comments, user accounts and settings. I explained this part in detail in What is a database?
I once had a client who only downloaded the code folder and forgot the database. Only when they needed to restore did they find out none of their posts were in it. The other way round, with only the database and no image folder, the website comes back up but all the images are gone.
How often should you back up?
The short answer: back up as often as the number of days of data you can afford to lose. Here’s what I suggest:
| Type of website | Backup frequency | Copies to keep |
|---|---|---|
| Brochure website, rarely edited | Weekly | The 4 most recent |
| Website with a regularly updated blog | Daily (database), weekly (files) | 7 to 14 |
| Online store with orders every day | Daily, or every few hours for the database | 14 to 30 |
Besides your regular schedule, you should make a manual backup right before updating WordPress, updating a major plugin, changing themes or editing code.
The 3-2-1 rule: don’t put all your eggs in one basket

The most common mistake I see is keeping the backup on the same hosting that runs the website. If the hosting has a problem or gets hacked, you lose both the website and the backup. That’s why I always recommend the 3-2-1 rule, a very widely used principle in the industry:
- 3 copies of your data: the live copy on your website plus at least 2 backups.
- 2 different types of storage: for example one copy on your hosting and one on Google Drive.
- 1 copy off-site: at least one copy that isn’t on your hosting, such as on Google Drive, Dropbox or your own computer.
For a small website, this is enough: your hosting backs up daily, a backup plugin sends a copy to Google Drive weekly, and once a month you download a copy to your computer. I still do this today, keeping a backup copy on my own computer.
3 ways to back up a WordPress website
Method 1: Use your hosting’s backup feature
Most hosting providers today include an automatic backup tool, usually in cPanel or DirectAdmin under names like Backup, JetBackup or Snapshot. Ask your provider 3 questions: do they make automatic backups, how often, and how many days are kept?
The advantage is that there’s nothing to install and restoring takes a few clicks. The downside is that the backups still live with the provider, and some cheap hosting plans only keep a few days. So this should be your first layer of protection, not the only one. If you’re not sure about the different kinds of hosting, have a look at What is web hosting?
Method 2: Use a backup plugin (easiest for beginners)
This is the method I usually show clients to do themselves. Some popular plugins:
- UpdraftPlus: easy to use; the free version can already schedule automatic backups and send them to Google Drive or Dropbox.
- Duplicator: great at packaging a whole website to move it to different hosting.
- All-in-One WP Migration: simple to use, good when you need to export and import a whole website.
For example, with UpdraftPlus you follow these steps:
- Go to Plugins → Add New Plugin, search for “UpdraftPlus”, install and activate it.
- Go to Settings → UpdraftPlus Backups and switch to the Settings tab.
- Choose a backup schedule for Files (for example weekly) and Database (for example daily), plus how many copies to keep.
- Under remote storage, choose Google Drive and follow the instructions to connect your account.
- Click Save Changes, then go back to the first tab and click Backup Now to create your first backup.
- Open Google Drive and check that there’s an UpdraftPlus folder with the backup files.
Method 3: Back up manually
This method is for those of you who are a bit more familiar with hosting, or for when you can’t get into the WordPress admin area:
- Back up the files: open the File Manager in your hosting, compress the folder containing your website (usually
public_html) into a .zip file and download it. - Back up the database: open phpMyAdmin, select your website’s database, click Export, keep the SQL format and download the file.
- Name the files clearly by date, for example
yoursite-2026-11-30-files.zipandyoursite-2026-11-30-db.sql, then save them to Google Drive.
Not sure which database belongs to your website? Open the wp-config.php file and look for the DB_NAME line to find its name.
How to restore your website when something goes wrong

When your website has a problem, stay calm and follow this order:
- Pinpoint when it broke: since when, and after what action? Then choose the backup made just before that moment.
- Back up the current state before restoring. It sounds backwards, but if you restore the wrong copy, you still have a way back.
- Restore using the same method you backed up with (details just below).
- Check everything: the homepage, a few posts, the contact form, the cart and the admin login. Clear the cache if your website uses a caching plugin.
In step 3, what you do depends on how you backed up:
- Hosting backups: open the Backup or JetBackup tool, pick the date and choose to restore the files and the database.
- UpdraftPlus: go to the Existing Backups tab, choose the backup you need, click Restore and tick the parts to restore (plugins, themes, uploads, database).
- Manual: upload the .zip file in File Manager and extract it over the existing files, then open phpMyAdmin, delete the old tables and Import the .sql file.
A small tip: if the problem only appeared after updating a plugin, you sometimes don’t need to restore the whole website. Just deactivating that plugin gets the site working again. I cover this in detail in should you update WordPress plugins?
If your website was hacked, restoring an old copy isn’t enough. You need to change all your passwords and close the vulnerability, or your website will be attacked again. I cover this in WordPress security basics.
5 backup mistakes I see all the time
- Only having backups on the hosting: if the hosting has a problem, you lose everything.
- Never testing a restore: you only find out the files are corrupt or incomplete when you need them. Every few months, test a restore on a spare hosting account or a staging site.
- Backups that are too old: the automatic schedule stopped long ago and nobody noticed. Check your Google Drive once a month.
- Missing the database or the image folder: as I said above, you need both.
- Leaving backup files in your website’s public folder: strangers can download them and read your data.
Frequently asked questions
My hosting already makes automatic backups. Do I need to do more?
Yes, you should. Hosting backups are very handy for a quick restore, but you don’t control them. An extra copy on Google Drive costs nothing and follows the 3-2-1 rule.
Do backups slow down my website?
While a backup is running, your website may be a little slower. Schedule backups at night, when few people are visiting.
What if my backups are too large?
The heaviest part is usually the image folder. You can back up the database more often and the files less often, and compress images before uploading them, as I showed in improving page speed.
Should I ask about backups when a website is handed over to me?
Yes. In 10 things to check when your website is handed over, I recommend getting the full source code and database, which is your first complete backup. Also ask how the automatic backup schedule is set up and where the backups are stored.
Wrapping up
Backups are something nobody values until the day the website has a problem. In short: back up both the files and the database, set an automatic schedule, keep at least one copy off your hosting, back up before every update, and test a restore now and then. Do that and you’ll have much more peace of mind.
The next post in this series covers WordPress security basics for non-technical owners. If you’d like me to check or set up backups for your website, just send me a message. Take care, everyone!




Comment
No comments yet. Be the first to comment!