If you're wondering how to backup your WordPress site, start with two things: your website files and database. Keep copies away from your hosting server and test that you can restore them. A UK retailer raised a question on Reddit after paying for its website and hosting: who was actually responsible for its backups?
We design and build WordPress websites ourselves, as one team based in Leicestershire. We judge a website on the enquiries it brings in, not just how it looks. If you're planning a new website or redesign, tell us about your project.
This guide covers three ways to back up WordPress, how to test your backups and what to ask your hosting provider or developer before something goes wrong.
How to Back Up Your WordPress Site: The Short Answer
Two Parts, Separate Storage and a Tested Backup
A reliable WordPress backup needs four things:
- A complete copy of your website files.
- A copy of your WordPress database.
- Storage away from your website's server.
- A successful test restore.
Think of a backup as a spare set of house keys. They're not much use if you've left them inside the house you're locked out of.
Which WordPress Website Backup Method Is Right for You?
| Method | Good for | Watch out for |
|---|---|---|
| Automatic hosting backups | Regular, hands-off backups | Storage location, retention and recovery access |
| WordPress backup plugin | Scheduled backups to cloud storage | Incorrect settings and failed backups |
| Manual backups | Preparing for updates, migrations and redesigns | Missing files or forgetting the database |
Automatic backups are a sensible starting point. Manual copies are particularly useful before significant website changes.
How Often Should You Back Up and How Long Should You Keep Copies?
The official WordPress handbook suggests weekly backups for smaller websites and daily backups for busy ones. It recommends keeping at least three to five recent copies in different locations.
Losing a week's worth of website edits might be inconvenient. Losing a week's worth of customer orders is another matter entirely.
What a Complete WordPress Website Backup Must Include
WordPress Files: Core, Themes, Plugins, wp-content and Uploads
Your website files contain the software, design, media and functionality that make your website work. A complete backup should include:
- WordPress core files.
- Themes in `wp-content/themes`.
- Plugins in `wp-content/plugins`.
- Images and documents in `wp-content/uploads`.
- Any custom code and additional website files.
How easy a site is to back up and restore depends on how it was built. Our WordPress development keeps sites lean, with fewer plugins and no page builder, so there's less to back up and less to go wrong when you restore.
Don't Forget wp-config.php and .htaccess
The `wp-config.php` file contains important configuration settings, including your database connection details. The `.htaccess` file, where used, contains rules that affect how your website behaves.
Include both in your backup and make sure hidden files are visible when downloading them manually.
WordPress Database Backup: From Customer Enquiries to WooCommerce Orders
Your database contains pages, posts, settings, user accounts, products and WooCommerce orders. It may also hold customer enquiries, depending on how your contact forms are set up.
Imagine getting your online shop back up and running, only to discover that recent orders have disappeared. The website looks fine, but your business still has a problem.
Why Copying Your Website Files Alone Isn't Enough
WordPress stores its database in a separate database system. Downloading your website folder doesn't include the database. Likewise, exporting the database doesn't include your themes, plugins or uploaded images. You need both to restore your complete website.
How to Back Up a WordPress Website: Three Practical Methods
Using Your Host's Automatic Backups: Check What's Actually Included
Your hosting provider should be your first port of call. Log into your hosting control panel and check whether automatic backups are included, what they cover, where they're stored and how long they're kept. Find out whether you can download and restore copies yourself.
Don't assume that paying for hosting means every part of website recovery is taken care of.
Using a Backup Plugin: UpdraftPlus, Backup Schedules and Retention
UpdraftPlus is a WordPress backup plugin with more than 4 million active installations. It can create scheduled copies and send them to remote storage. To get started:
- Install and activate UpdraftPlus.
- Set your file and database backup schedules.
- Choose how many copies to retain.
- Connect your remote storage account.
- Run your first complete backup.
- Check that both parts have reached their destination.
The WordPress handbook recommends taking an occasional manual backup to check your automated process. If you're wary of adding another plugin, read our guide on how many WordPress plugins is too many.
How to Back Up WordPress Manually Without a Plugin: cPanel, phpMyAdmin, .sql Export and SFTP
You can create a complete backup without installing another plugin.
Step 1: Export your database. Log into your hosting control panel, such as cPanel, and open phpMyAdmin. Select your WordPress database (its name is listed in `wp-config.php`), choose Export, pick SQL and download the `.sql` file.
Step 2: Download your website files. Open cPanel File Manager, find your WordPress installation (often inside `public_html`), then compress and download it. Or connect using SFTP and download the files to your computer.
Step 3: Keep both parts together. Save your files and database export in a dated folder. Finding the right backup is harder when everything is called 'website-final-final'.
Where to Store Your WordPress Backups So They're Safe
How to Back Up WordPress to Google Drive, Dropbox or Amazon S3
In UpdraftPlus, choose your remote storage destination and authorise the connection. Save your settings and run a complete backup. Then log into your storage account and check that both the website files and database have arrived.
You want a copy you can reach even if your hosting account becomes unavailable.
The 3-2-1 Backup Rule: Why Off-Site Copies Matter
The 3-2-1 backup rule stops you putting all your eggs in one basket. It means keeping:
- Three copies of your data, including the original.
- Two different types of storage.
- One copy stored off-site.
For example, keep your live website, a backup on your computer and another copy in independent cloud storage.
Protecting Your Remote Storage With 2-Step Verification
The UK's National Cyber Security Centre (NCSC) recommends backing up everything your business needs to operate, including your website, and protecting online backups with 2-step verification.
Your backups may contain customer information and database details. Use a strong, unique password and limit access to the people who need it. For more on locking down WordPress, read our guide to Wordfence settings.
When to Back Up Your WordPress Site Before an Update, Migration or Redesign
Take a fresh backup before:
- Updating WordPress, themes or plugins.
- Moving to another hosting provider.
- Changing custom website features.
- Starting a website redesign.
The WordPress upgrade guide says to check that your backups exist and are usable before an upgrade. Make it part of preparing for the work, not something you remember halfway through when an error message appears.
How to Back Up and Restore a WordPress Site Without Risking the Live Website
Set Up a Staging Site Before Attempting a Restore
A staging site is a separate copy where you can test your website without affecting the version your customers use. Check whether your hosting provider offers staging. Keep it private, and switch off outgoing customer emails and live payments.
Follow the Correct Restore Order: Files First, Database Second
When restoring WordPress manually, follow the order in the official handbook:
- Restore your website files.
- Import the database backup.
- Update `wp-config.php` if the database details have changed.
- Check that the restored website loads.
If you're using a plugin or your host's recovery tool, follow its restore instructions.
Test Your Pages, Images, Menus, Logins, Enquiry Forms and Recent Orders
Your homepage has loaded. Brilliant. But don't put the kettle on just yet. Check the parts of your website your business relies on:
- Important pages, images and documents.
- Navigation menus and internal links.
- Administrator and customer logins.
- Enquiry forms, using safe test settings.
- WooCommerce products and orders up to the backup date.
The NCSC recommends knowing how to restore backups and checking that they contain your important data.
Record Your Restore Date and Fix Anything That Failed
Note which backup you restored, when you tested it and whether anything was missing. If you find a problem, fix your backup process and test again. It's far better to discover a missing database during a routine check than during your busiest week.
Who Is Responsible for Your WordPress Backups?
Your Hosting Provider, Website Developer or You?
You've paid someone to build your website. Another company hosts it. Your marketing team updates its content. So, who is actually responsible for backing it up?
It depends on what each party has agreed to do. Responsibility should be agreed, not assumed. You don't have to take backups yourself, but you do need to know who does.
What to Get in Writing: Storage, Retention, Access and Recovery
Ask your hosting provider or developer:
- Who takes the backups?
- Are both files and the database included?
- How often are copies taken, and where are they stored?
- How long are they kept?
- Can you download them yourself?
- Who handles recovery, and when was the last successful test restore?
Get the answers in writing. These are perfectly reasonable questions when your website brings in business.
Planning a Website Redesign? Start With a Tested Backup
A redesign or a move is when a tested backup matters most. It should move your business forward without putting content, customer information or existing features at risk.
That's how our WordPress web design and development works. We design and build WordPress sites ourselves, as one team. Before we change a live site, we take a full backup of the files and database and restore it to a staging copy to prove it works. At handover you get the logins, the code and a written note of where backups are kept and who can restore them. The scope and a fixed price are agreed in writing before we start.
Ready for a WordPress Website That Works Harder for Your Business?
If you're planning a redesign or have outgrown your current site, have your WordPress site rebuilt properly. We design and build WordPress websites ourselves, around how your business and its customers work.
Tell us about your project, and we'll tell you how we'd build it.