How to Set Up Safe WordPress Backups
A good WordPress backup covers files and database, lives somewhere separate, runs on a schedule and has been restored at least once. Here is how to set it up.
10 min readUpdated Nov 23, 2026By XPASS Editorial Team

Every website owner eventually meets a moment when a backup decides how the day goes. It might be a failed update, an accidental deletion, a hacked plugin, a hosting problem or a human error. With a working backup, the moment is an inconvenience of an hour or two. Without one, it can mean rebuilding pages from memory or losing orders and customer records.
The difficulty is that backups are boring until needed, so they are easy to set up badly. Many sites have a backup plugin that has been quietly failing for months, or copies stored on the same server that was just compromised. This article explains what to back up, where to keep it, how often to run it, how to protect the backups themselves and how to test a restore. It fits into the wider list of measures in the WordPress security checklist for business sites.
What a WordPress backup must contain
A WordPress site has two parts, and you need both.
- The database: stores posts, pages, comments, users, settings, orders and most plugin data. If you lose it, you lose almost everything that is unique to your site.
- The files: include the
wp-contentfolder with uploads (images and documents), themes and plugins, plus the configuration file and any custom code. Uploads are especially important because they cannot be regenerated.
WordPress core itself can be downloaded again, so it is the least critical part, but backing it up with the rest keeps the restored site consistent with the versions you were running.
Also record what lives outside WordPress: DNS settings, email accounts, certificate details, hosting login and any external services the site depends on. You cannot restore these from a site backup, so keep a short document that explains how they are configured.

Choose a method
There are four common ways to produce backups. They are not exclusive.
| Method | How it works | Strengths | Weaknesses |
|---|---|---|---|
| Hosting provider backups | The host copies your account on a schedule | Easy, often automatic | Retention and download options vary; usually stored near the server |
| Backup plugin | A plugin packages files and database and sends them to storage | Flexible schedules and destinations | Adds another plugin; can fail quietly or run out of memory |
| Manual export | You download files with SFTP and export the database | Full control, no extra software | Easy to forget; error-prone |
| Server-level or snapshot backups | Whole-server or disk snapshots | Fast restore of everything | Depends on the host or your own server skills |
For most business sites a sensible mix is a plugin or host tool for routine backups plus an occasional manual copy before major changes. If you choose a plugin, treat it like any other plugin: keep it updated, and see why too many WordPress plugins can be a security risk when deciding how many tools you really need.
Where to store backups
The most common mistake is keeping backups on the same server as the site. If the server fails, is hacked or is suspended, the backups go with it. A safer arrangement follows the simple idea of keeping several copies on different media in different places.
- Copy one: the live site.
- Copy two: a backup on the host or the same account, handy for quick restores.
- Copy three: a backup in separate storage outside the host, with different credentials.
Good practices for the separate storage:
- Use an account whose password is not reused anywhere else and that has two-factor authentication. See CISA guidance on multi-factor authentication.
- Use a storage connection that is encrypted in transit. The reason HTTPS matters for this is described in what HTTPS is.
- Give the plugin or script only the permissions it needs, ideally the ability to add new files but not to delete old ones, so an attacker who steals the key cannot wipe your history.
- Consider encrypting the backup archive if it contains personal data, and keep the key somewhere safe and separate.
- Do not leave downloadable backup files in a public web folder. Backup archives sitting at a guessable web address are a well known way for data to leak.
How often and how long to keep them
Frequency should match how much work you could stand to lose. Ask: if the site were restored to its last backup, how much would be missing?
| Site type | Suggested database frequency | Suggested file frequency |
|---|---|---|
| Brochure site that rarely changes | Weekly | Monthly or after changes |
| Blog or news site | Daily | Weekly |
| Online shop or booking site | Several times a day or continuous | Daily or weekly |
These are starting points, not rules. Keep several generations, for example the last seven daily copies, four weekly copies and a few monthly ones. Problems are often noticed late, and a clean copy from three weeks ago is better than having only yesterday's already infected one. Also decide how long you must keep data under any legal or contractual duties, and how to delete old copies containing personal data when they are no longer needed.
Set it up step by step
- List what you must protect. Database, uploads, theme, plugins, configuration, and notes on DNS and email.
- Pick the tools. Check what your host provides and whether you can download the copies. Add a plugin or script if needed.
- Set the schedule. Choose frequencies from the table above, preferably at a quiet hour.
- Choose separate storage. Create the account, enable two-factor authentication and connect it with limited permissions.
- Set retention. Decide how many generations to keep and when older ones are deleted.
- Turn on notifications. You want an email or message on failure, not only on success, and a regular check that a recent backup exists.
- Do a first full backup now and confirm that the archive opens and its size looks sensible.
- Test a restore on a separate copy, as described below.
- Document the procedure so anyone responsible for the site can restore it.
Test the restore
A restore test is the step most people skip. It proves three things: the backup contains what you think it does, you know the steps, and you know how long it takes.
- Create a test environment, such as a subdomain on your host, a local setup or a staging feature provided by the host.
- Upload the files and import the database from a recent backup.
- Update the site address settings if the test copy uses a different address.
- Browse the home page, inner pages, images, search, forms and logins.
- Check the browser console and the error log for missing files.
- Note how long the whole process took and write down anything that was unclear.
If the test fails, you have learned something at very low cost. Fix the setup and repeat. Many people find problems such as an archive that stops halfway because of a time limit, a database export that does not include some tables, or uploads missing because the plugin excluded large folders.
A worked example
A small architecture studio uses WordPress for its portfolio and enquiry form. The owner asks the host what backups exist and learns that daily copies are kept for a short period and can be downloaded on request. She decides this is a useful layer, but not enough.
She installs a backup plugin, sets a nightly database backup and a weekly file backup, and connects it to separate cloud storage using an account with two-factor authentication. She keeps seven daily and four weekly copies. She adds an email notification for failures. Before each plugin update she runs a manual backup from the dashboard.
Two months later a plugin update breaks the enquiry form. She rolls back by restoring the previous plugin files from the backup, and the form works again within fifteen minutes. A quarter later she restores a full backup to a subdomain to check that everything is still working. The test shows that large image folders are missing because the plugin excluded files above a size limit. She changes the setting and runs the test again. Without the test, she would have found this out in the middle of a real emergency.
Limits and what to watch for
- A backup can contain the infection. If the site was already compromised when the backup ran, restoring it restores the problem. This is why you keep several generations, and why you should update and check accounts after any restore.
- Backups are not security. They help you recover, but they do not stop an attack. Updates, strong passwords and access controls still matter; see why you should keep themes and plugins updated.
- Backups hold sensitive data. They include user records, and often configuration secrets. Protect them as carefully as the live site and delete old ones according to your obligations.
- Large sites can break simple tools. Time limits and memory limits on shared hosting can cause silent failures. Check the logs and consider incremental backups for large uploads.
- Plugins differ. Some do not back up custom tables, multisite networks or external databases. Read the documentation and test.
- Do not forget what is outside WordPress. DNS records, email and certificates need their own notes. Pages on domains and SSL certificates explain the supporting pieces.
- Restoring takes time. Know your own tolerance. If an hour offline costs a lot, you need faster tools or a standby plan.
- Errors during restore. If the restored site shows server error codes, the meaning of HTTP status codes in RFC 9110 can help you tell a client-side from a server-side problem.
A quick monthly routine
- Open the backup tool and confirm the latest backups are recent and not suspiciously small.
- Download one backup and open it to check it is readable.
- Review storage space and retention.
- Review who has access to the backup storage and remove old users.
- Once a quarter, perform a full restore test.
Fifteen minutes a month is enough to keep the habit alive.
Common backup mistakes to avoid
A few patterns show up again and again when backups fail at the moment they are needed.
- Relying on a single copy. One copy is a single point of failure. Even a good plugin cannot help if its only storage is the server that has just gone down.
- Never checking the notifications. If failure emails go to an old address nobody reads, the system is silent when it matters most. Send alerts to a shared mailbox.
- Letting storage fill up. When the destination is full, new backups stop. Watch usage and keep your retention rules realistic.
- Forgetting to back up before changes. Routine schedules do not know you are about to update a key plugin. A manual backup immediately before a risky change costs a minute and can save a day.
- Keeping the only restore guide in someone's head. Write the steps down, including where the storage account is and who can sign in to it.
- Assuming the host will handle everything. Hosting terms differ. Read what is promised, what is not, and how long copies are kept, and fill the gaps yourself.
Summary
A safe WordPress backup includes both the database and the files, runs on a schedule that matches how often your site changes, is stored separately from the web server with its own protected credentials, keeps several generations, and has been restored at least once on a test copy. Pair it with notes about DNS, email and certificates, and review it monthly. Backups do not prevent incidents, but they decide how much an incident costs you.
If your site's certificate or domain is the next thing to tidy up, the domains page shows what is available.
Frequently asked questions
What does a complete WordPress backup include?
It includes the database, which holds posts, pages, users and settings, and the files, which hold uploads, themes, plugins and configuration. A backup of only one of the two usually cannot rebuild a working site.
Where should I store WordPress backups?
Keep at least one copy away from the web server, in separate storage with its own credentials. If backups sit only on the same server, one compromise or hardware failure can destroy both the site and the backups.
How often should I back up my site?
It depends on how often content changes. A brochure site may be fine with a weekly backup, while a shop or a site with frequent posts needs daily or more frequent database backups. Always back up before updates.
How do I know my backup works?
Restore it on a separate test copy and check that pages, images, forms and logins work. A backup that has never been restored is an assumption, not a safety net.
Is the backup from my hosting provider enough?
It is a useful layer but should not be the only one. Find out how long the host keeps copies, whether you can download them and whether they are stored separately, then add your own copy if the answers are unclear.
About the author

Bob Kanokphon Thongdee
- Founder of XPASS VPN
- Co-founder of eSIMonline.asia
- More than 7 years in online marketing
- Founder of Cojourney Visa and Cojourney Travel
Start your website the right way
Register a domain, add SSL and set up business email from one place.
.com registration from $18.81 for the first year
Start with a domainKeep reading

Website Guides
A WordPress Security Checklist for Business Websites
A step-by-step checklist that covers accounts, updates, backups, HTTPS, hosting and monitoring so a business WordPress site stays harder to compromise.
11 min read

Website Guides
Do Too Many WordPress Plugins Hurt Security?
A long plugin list is not automatically a risk, but every plugin adds code you must trust and maintain. Here is how to judge and trim yours.
10 min read

Website Guides
Why You Should Update Your WordPress Theme and Plugins Regularly
Updates close known security holes and keep your site compatible. See what each update type does, the risks of skipping them and a routine that rarely breaks anything.
9 min read