Create a WordPress backup: 3 ways and the 3-2-1 rule

Titelbild: WordPress Backup erstellen: 3 Wege und die 3-2-1-Regel

To create a reliable WordPress backup and permanently protect your website against data loss, you should follow the proven 3-2-1 rule: three copies of your data on two different storage media, with at least one stored in an external location (offsite). You can create your backup conveniently via a plugin, directly through your hosting, or manually (files via SFTP and database via phpMyAdmin). Automation, several versions and regular restore tests are important.

A backup is the only insurance that really helps when everything else fails. Whether a hack, a failed update, a server outage or an accidentally deleted folder: with a current backup you are back online in minutes or hours. Without it, often only a rebuild remains. Still, surprisingly many site owners have no working backup, or only notice in an emergency that it is incomplete.

In this article we show you how to Create a WordPress backup . You will get to know three ways, learn the 3-2-1 rule, find out what a complete backup contains, how often you should back up and how to test the backup. How to restore a backup in an emergency is described in the article Restore a WordPress backup.

Why backups are so important

The reasons why you need an up-to-date backup are more varied than many site owners think:

  • Hack and malware: After an infection a clean state is often the fastest way back (see WordPress hacked).
  • Failed updates: A plugin update destroys the layout or takes the site down.
  • Human errors: A wrongly deleted post, an overwritten theme, a wrong database command.
  • Hosting problems: Server outage, defective hard drive, insolvency of the provider.
  • Migration and tests: A backup is the basis for moving the site to another server or into a test environment.

So the question is not whether you need a backup, but when. And the answer is: it is better if you already have it.

Create a WordPress backup: featured image

What belongs in a complete backup?

A WordPress site consists of two parts, and both belong in the backup.

1. Files

  • The folder wp-content with themes, plugins and uploads (images, PDFs, videos)
  • The file wp-config.php with the database credentials
  • The .htaccess with redirects and rules
  • If applicable own files in the main directory (for example robots.txt or verification files)

The WordPress core (wp-admin, wp-includes) can be downloaded again at any time. If you back it up too, restoring is still easier.

2. Database

The database holds your content: posts, pages, comments, settings, users, menus, shop orders. Without a database backup your site is empty, even if all files are backed up. With shops and sites with forms the database changes constantly, so it should be backed up more often than the files.

Infographic: the 3-2-1 backup rule for WordPress
The 3-2-1 rule for your backup (click to enlarge)

The 3-2-1 rule

The 3-2-1 rule is a proven standard for data backup. It means:

  • 3 copies of your data: the original and two backups
  • 2 different media or storage locations, such as server and cloud storage, or cloud and local hard drive
  • 1 external copy (offsite), meaning physically and technically separated from your live site's server

Why this rule works

It covers different failure scenarios. If one medium fails, there is still a second one. If the server is hacked or accidentally deleted, the external copy is stored safely in an independent location. A backup that is only on the same server as the site is not a real backup: if the server is infected or deleted, it is gone too.

An example of implementation

  1. Copy 1: Your live site on the server.
  2. Copy 2: Daily backup on cloud storage (medium 2, external).
  3. Copy 3: Weekly backup from your host on a physically separate backup system, or a monthly copy on an external hard drive connected to your computer (second independent medium).

Way 1: backup with a plugin

For most websites, a backup plugin is the easiest way. It automatically bundles files and the database, uploads them to external storage, and manages backup cycles on its own.

What a good plugin should be able to do

  • Automatic schedules (daily or more often)
  • Backup of files and database
  • Storage in external destinations such as cloud storage, SFTP or S3
  • Keep several versions and delete old ones automatically
  • Restore with one click, ideally also with a broken backend
  • Email notification on errors
  • Encryption of the backup

How to proceed

  1. Choose an established backup plugin (for example UpdraftPlus for straightforward cloud backups, Duplicator for migrations and full packages, or BlogVault for large shops with real-time backups).
  2. Connect an external storage location, such as Google Drive or Dropbox for smaller sites, or an SFTP server (like a Hetzner Storage Box) or S3-compatible object storage like Cloudflare R2 for larger projects.
  3. Set up the schedule: files weekly, database daily, for shops more often.
  4. Define how many versions are kept (for example 14 days daily, 3 months weekly).
  5. Start a first manual backup and check whether the files arrive at the destination.
  6. Enable email notifications on errors.

Limits of plugins

Plugins consume server power, especially on large sites. With very large media libraries the backup can fail due to time or memory limits. And: if the site is hacked, an attacker can misuse the plugin and its credentials for the backup storage. Therefore, whenever possible, use immutable storage locations (Object Lock / write-only access without delete permissions via the plugin credentials) and combine plugin backups with an independent host backup.

Way 2: backup via the hosting

Many hosts offer automatic backups, often daily and with several days of retention. That is a convenient additional layer.

What you should watch for

  • Size: Are files and database included? Or only the files?
  • Retention: How many days or weeks are stored?
  • Location: Are the backups on a different system than the server?
  • Restoration: Can you restore with one click yourself, or do you have to ask support? How long does it take, and does it cost anything?
  • Access: Can you download backups?

Do not rely exclusively on the host backup. It can disappear on cancellation, suspension or problems at the provider. Your own external copy remains necessary. Our backup service for $16 per month backs up your site independently of the host. You will find notes on suitable hosting on the page Server and hosting.

Way 3: manual backup

If you do not want to use a plugin or need a quick backup before a major change, you can back up your files and database manually yourself.

Files via FTP or SFTP

  1. Connect to your server with an FTP program (for example FileZilla). Use SFTP if possible.
  2. Download the entire WordPress directory to your computer, at least wp-content, wp-config.php and .htaccess.
  3. Check whether all files were transferred (compare number and size).

Database via phpMyAdmin

  1. Open phpMyAdmin via your hosting panel.
  2. Select your WordPress database on the left (you find the name in the wp-config.php).
  3. Click "Export", choose the "Quick" method with the SQL format, and verify after downloading that the file is not empty.
  4. Save the file on your computer.

Advantages and disadvantages

The manual backup needs no plugin and gives you full control. It is laborious, error-prone and by experience rarely done regularly. Use it as a supplement and before risky changes, not as the main strategy.

The three ways compared

Feature Plugin Hosting Manual
Effort low after setup very low high
Automation yes yes no
External location yes, freely selectable usually limited your computer
Restoration with one click with one click or support manual
Check high low to medium very high
Risk Load, configuration errors Dependence on the provider gets forgotten

How often should you back up?

The right frequency depends on how much changes on your site and how much you could afford to lose in an emergency.

  • Rarely changed company site: weekly files, daily database.
  • Blog with regular posts: daily database, weekly files.
  • Online shop or site with forms: database several times a day or in real time, files daily.
  • Before every update or bigger intervention: always a fresh backup.

Ask yourself: how many hours of orders, posts or comments can I bear to lose? Your backup interval results from that.

How long to keep them?

Several versions are important, because you only notice some problems after days or weeks. A proven staggering: daily backups for 14 days, weekly ones for three months, monthly ones for a year. That way you can go back even if a hack stayed undiscovered for a long time.

Test the backup: without a test no backup

A backup you have never restored is an assumption. So plan a test regularly.

  1. Download a current backup or select it in the plugin.
  2. Restore it in a test environment (local installation or a subdomain), not on the live site.
  3. Check: home page, subpages, images, forms, login, shop functions.
  4. Note how long the restore took and what was missing.
  5. Repeat the test at least once a quarter.

That way you find problems while there is still time: incomplete backups, missing database tables, defective archives or expired credentials for the storage location.

Security of the backups

Backups contain all data of your site, including sensitive data. Protect them accordingly:

  • Encryption: Enable encryption in the plugin or at the storage service.
  • Restrict access: Only you and a few authorized people may access the storage.
  • Two-factor login: Protect accounts at the cloud storage with 2FA.
  • No backups in the web directory: Archives reachable via the domain can be downloaded by strangers.
  • Data protection: Check storage location and contracts, especially with personal data.

Typical backup mistakes

  • Backing up only on the same server
  • Backing up only files or only the database
  • Never testing whether the backup can be restored
  • Keeping too few versions
  • Ignoring error messages of the backup plugin
  • Leaving backups on your own computer without password protection
  • Not creating a fresh backup before updates

Backup as part of overall security

The backup is your last line of defense. In front of it stand updates, login protection and firewall. You will find a complete overview in the WordPress security checklist. How to close vulnerabilities before they become a problem is explained in the article WordPress vulnerabilities. If you want everything from a single source, combine backups for $16 per month with the Security package for $32 per month and the Wartung for $99 per month.

Practical example: the update that went wrong

An entrepreneur applies several plugin updates at once on a Friday afternoon. Afterwards the site shows a white screen. Because an automatic backup ran in the morning and a copy sits in the cloud storage, the site is back online after half an hour. He then applies the updates one by one and finds the plugin that caused the error.

Without a backup he would have needed the weekend and Monday to look for the cause. The site would have been offline in the meantime. Help with errors like this is also offered by our Error Fix service for $129, and the error pattern is shown, for example, by the article on the critical error.

Backup strategy for different site types

Not every site needs the same backup frequency. These practical examples show what the ideal strategy looks like depending on the site type.

Static company site (rarely changed)

  • Database: daily, 14 days retention
  • Files: weekly, 4 weeks retention
  • In addition: a backup before every update, a copy on your own computer once a quarter

Blog or magazine

  • Database: daily, better several times a day with many authors
  • Files: weekly, daily with many new images
  • Retention: 30 days of daily versions, 6 months of monthly ones

Online shop

  • Database: hourly or in real time, because every order counts
  • Files: daily
  • Retention: at least 30 days for full backups; archive accounting-relevant order and invoice data separately as legally required (usually 10 years)
  • In addition: order exports to a separate location

Site with member area or bookings

  • Database: several times a day
  • Files: daily
  • Restore test monthly, because every data gap has direct consequences for customers

Backups and data protection

A backup is a complete copy of your data, including personal data: customer accounts, contact requests, orders, comments. So the rules of the GDPR also apply to the backup.

  • Location: Store backups in the EU if possible and conclude a data processing agreement with the provider.
  • Encryption: Encrypted backups are much less risky in case of loss or theft.
  • Deletion periods: Old backups also contain data that was long deleted from the site. Define retention periods and delete old versions automatically.
  • Access: Only authorized persons may download or restore backups.
  • Documentation: Record in your register of processing activities where backups are stored and for how long.

Checklist: check your backup system in 10 minutes

Question Yes / No
Do backups run automatically? ☐
Do they contain files and database? ☐
Is at least one copy external? ☐
Are there several versions (at least 14 days)? ☐
Is the backup encrypted? ☐
Does an email arrive on errors? ☐
Was restoring tested in the last 3 months? ☐
Do you know who has to do what in an emergency? ☐

Key terms around backups

Full backup

A backup of all files and the complete database. It is the basis of every restore.

Incremental backup

Only the changes since the last backup are stored. That saves space and time but needs several parts when restoring.

Retention

The period for which old backups are kept before they are deleted automatically.

Offsite backup

A backup in a different place than the live site, for example in cloud storage.

RPO and RTO

RPO (Recovery Point Objective) describes the maximum amount of data loss you can tolerate in an emergency – such as 1 hour for an online shop. RTO (Recovery Time Objective) defines how long a restore is allowed to take. Both values determine your backup strategy.

Staging

A test copy of the site. A backup can be restored there without risk and checked.

The key points in brief

  • 3-2-1: three copies, two media, one external.
  • Files and database always belong together.
  • Automatically, with several versions and encryption.
  • Without a test a backup is just an assumption.
  • Create a fresh backup before every update.

That way you are prepared for hacks, update errors and server outages.

After an outage: How to restore your backup step by step

A backup only helps if you can cleanly restore it in an emergency. You can find a detailed step-by-step guide for different scenarios in the article Restore a WordPress backup. Here is the compact emergency workflow at a glance – proceed calmly, because haste causes most mistakes.

The steps at a glance

  • Narrow down the problem: Is the whole site affected or only one area?
  • Choose the right backup: Take the last state before the error, not automatically the newest one.
  • Back up the current state first, even if the website is broken, so you can return to this starting point at any time if complications arise.
  • Restore files and database together so that both match.
  • Clear the cache and test the site thoroughly, especially forms, login and checkout.

After the restore, you should definitely investigate the root cause. If the site was hacked, change all passwords (WordPress, database, SFTP, hosting), update the theme and plugins, and check whether unknown user accounts were created. If you only restore the backup without closing the security vulnerability, the site is often infected again a few hours later.

Plan enough time for the restore and test the process once in a staging environment. Anyone who has practiced it usually needs only a few minutes in an emergency.

Conclusion

Creating a WordPress backup is not rocket science, but it needs planning: files and database, three copies, two media, one external, automatic, with several versions and regular testing. That way you are prepared for any emergency. If you do not want to set it up yourself, we are happy to take it over. Write to us via the Contact page or have a look at the Security for details.

Frequently asked questions about WordPress backups

What is the easiest way to create a WordPress backup?

With a backup plugin that automatically backs up files and database and uploads them to external storage. Set it up once and check it regularly.

What does the 3-2-1 rule mean?

Three copies of your data, on two different media, one of them external in a different place. It protects against failure, hacks and mistakes.

Is my host's backup enough?

As a supplement yes, alone no. You should have your own external copy that is independent of the provider.

How often should I make a backup?

At least weekly, daily for active sites, several times a day for shops. Additionally a fresh backup before every update.

What has to be backed up?

Files (above all wp-content, wp-config.php and .htaccess) and the complete database.

How long should I keep backups?

A staggered retention schedule (GFS principle) is recommended: daily backups for 14 days, weekly for three months, and monthly for up to one year – while respecting GDPR deletion periods.

How do I test whether my backup works?

Restore it in a test environment and check pages, images, forms and login. Repeat the test regularly.

Where do I best store backups?

Externally: cloud storage, SFTP server or S3-compatible storage, plus a copy on your own device. Not in the web directory.

Is a backup useless in a hack if it is infected?

If the hack is already in the backup, yes. That is why you need several versions so you can go back to a point in time before the hack.

What does a backup cost at Boudmedia?

Our backup service costs $16 per month and backs up your site automatically and externally.

Amine Boudounite

About the author

Amine Boudounite

Amin is the founder of Boudmedia and builds WordPress websites, online shops and business sites. In his guides he explains technology, loading speed and visibility so that you can apply them without any prior knowledge.

Contents
Help with your WordPress site?

We take a free look and tell you honestly what is needed and what it costs.

Share post

You might also be interested in

WordPress Backend Slow? How to Speed Up the Dashboard

Wenn das WordPress-Dashboard träge ist: Ursachen und Maßnahmen im Überblick.

Finding and Fixing a WordPress Plugin Conflict

So findest du den Plugin-Konflikt in WordPress und löst ihn ohne Datenverlust.

Google Shopping with WooCommerce: How to Make Your Feed Error-Free

Wie ein sauberer Produktfeed für Google Shopping aussieht und welche Fehler du in WooCommerce vermeiden kannst.

Problems with your WordPress site? We fix them at a fixed price.

  • Free check of your site
  • Honest assessment of what is needed
  • Fixed price before we start
  • Reply within 24 hours on business days
Scroll to Top