Skip to content
How to Back Up Your WordPress Site: Methods, Plugins, and Schedule
WordPress Security📋 Guide

How to Back Up Your WordPress Site: Methods, Plugins, and Schedule

Can BayarCan Bayar••Updated on: •15 min read•501 views

Key Takeaways

  • ✓WordPress backups should include database files, theme/plugin files, uploads directory, and configuration files.
  • ✓UpdraftPlus and BackWPup automate scheduled backups to cloud storage like Dropbox, Google Drive, or Amazon S3.
  • ✓Manual backups via cPanel or FTP require exporting the database separately from file downloads.
  • ✓Test backup restoration regularly to ensure files are complete and functional before emergency situations.
  • ✓Daily backups suit e-commerce sites, while weekly or monthly schedules work for low-traffic blogs.
```html

A WordPress backup is your safety net against data loss, hacking, server failures, update conflicts, and human error. Without a reliable backup strategy, a single mishap — a failed update, a hacked site, a server crash, or an accidental deletion — can wipe out months or years of work. Despite this, a significant number of WordPress site owners either do not back up their sites at all or rely solely on their hosting provider's backups without verifying they work.

This guide covers every backup method available to WordPress site owners, from manual command-line backups to automated plugin solutions. You will learn what to back up, how often to do it, where to store backups safely, and how to verify your backups actually work when you need them. A solid backup strategy is also a core component of WordPress security, providing your final line of defense when preventive measures fail. For more information on plugins, refer to the WordPress Plugin Handbook.

What a WordPress Backup Includes

A complete WordPress backup consists of several components. Missing any one of them means your restore will be incomplete.

ComponentLocationContains
WordPress Core Files/wp-admin/, /wp-includes/WordPress software (can be re-downloaded, but version matters)
wp-content/themes/wp-content/themes/Installed themes, customizations, child themes
wp-content/plugins/wp-content/plugins/All installed plugins and their configuration files
wp-content/uploads/wp-content/uploads/Media library: images, documents, videos, organized by year/month
wp-config.phpRoot directoryDatabase credentials, security keys, custom constants
.htaccess / nginx.confRoot directory / server configRewrite rules, redirects, security headers
DatabaseMySQL / MariaDBPosts, pages, comments, users, settings, plugin data, WooCommerce orders

The Critical Importance of Database Backups

Your database is the single most valuable part of your WordPress site. It contains all your content (posts, pages, custom post types), user accounts and metadata, WooCommerce orders and customer data, plugin settings and configurations, widget settings, and custom field data. Files can often be re-downloaded or regenerated, but your database content is unique and irreplaceable.

Method 1: Manual Backup via SSH and phpMyAdmin

Manual backups give you direct control over the process and are valuable for one-time backups before major changes, server migrations, or situations where plugin-based backups are not functioning.

Backing Up Files via SSH

Connect to your server via SSH and create a compressed archive of your WordPress directory:

tar -czvf wordpress-backup-$(date +%Y%m%d).tar.gz /path/to/wordpress/

For large sites, you may want to exclude certain directories from the backup, such as cache files and temporary data:

tar -czvf wordpress-backup-$(date +%Y%m%d).tar.gz --exclude='wp-content/cache' --exclude='wp-content/upgrade' /path/to/wordpress/

Backing Up the Database via Command Line

Use mysqldump to export your database:

mysqldump -u db_username -p db_name > database-backup-$(date +%Y%m%d).sql

For large databases, add compression:

mysqldump -u db_username -p db_name | gzip > database-backup-$(date +%Y%m%d).sql.gz

Backing Up the Database via phpMyAdmin

If you prefer a GUI approach: log into phpMyAdmin through your hosting control panel, select your WordPress database, click the Export tab, choose "Custom" for more options, ensure all tables are selected, select SQL format, and click Go to download the SQL file.

Pros and Cons of Manual Backups

ProsCons
Full control over what is backed upTime-consuming, easy to forget
No plugin dependenciesNo automated scheduling
Works when WordPress is inaccessibleRequires SSH/phpMyAdmin knowledge
No additional costNo built-in offsite storage

Method 2: Plugin-Based Automated Backups

Backup plugins automate the entire process: scheduling, execution, compression, and offsite storage. They are the recommended approach for most WordPress site owners because they eliminate human error and ensure consistent backups. For a list of available plugins, check the WordPress Plugin Directory.

UpdraftPlus

UpdraftPlus is the most widely installed WordPress backup plugin, with over 3 million active installations. It supports both manual and scheduled backups, with direct integration to cloud storage services including Google Drive, Dropbox, Amazon S3, Microsoft OneDrive, and Backblaze B2.

Key features:

  • Scheduled automatic backups (database and files on separate schedules)
  • Incremental backups (Premium) — only backs up changed files, reducing time and storage
  • One-click restore from the WordPress admin
  • Multisite support (Premium)
  • Migration and cloning tools (Premium)
  • Encryption for database backups (Premium)

Setting up UpdraftPlus:

Step 1: Install and activate UpdraftPlus from the WordPress plugin repository or use the UpdraftPlus Premium version for incremental backups, multisite support, and additional storage destinations.

Step 2: Go to Settings > UpdraftPlus Backups and navigate to the Settings tab.

Step 3: Set your backup schedule. For most sites, backing up files weekly and the database daily provides a strong balance between protection and storage usage.

Step 4: Choose your remote storage destination. Click the icon for your preferred service (Google Drive, Dropbox, S3, etc.) and follow the authentication steps.

Step 5: Configure how many backup copies to retain. Keep at least 3-4 copies for files and 7-14 copies for database backups.

Step 6: Click Save Changes and then Backup Now to run your first backup.

BlogVault

BlogVault is a SaaS-based backup solution that stores backups on its own cloud infrastructure. Unlike plugin-only solutions, BlogVault performs backups on its servers rather than yours, reducing the load on your hosting.

Key features:

  • Real-time incremental backups (tracks changes continuously)
  • Independent backup storage on BlogVault's servers
  • One-click staging site creation
  • Built-in migration tool
  • WooCommerce-aware backups (captures order data between scheduled backups)
  • 365-day backup history

BlogVault is a paid service ($89/year for a single site) but is well-suited for WooCommerce stores and business sites where real-time backups and independent storage are priorities.

BackWPup

BackWPup is a free backup plugin that focuses on creating complete backup archives. It can back up to Dropbox, Amazon S3, FTP servers, and email, and can generate both file and database backups in various formats (ZIP, TAR, TAR.GZ).

Key features:

  • Complete site backups (files + database in one archive)
  • Database optimization and repair during backup
  • XML export of WordPress content
  • Multiple backup jobs with different schedules and destinations
  • Restore via standalone restore script (independent of WordPress)

Plugin Comparison

FeatureUpdraftPlus FreeUpdraftPlus PremiumBlogVaultBackWPup Free
Scheduled backupsYesYesYes (real-time)Yes
Incremental backupsNoYesYesNo
Cloud storageGoogle Drive, Dropbox, S3+OneDrive, Backblaze, AzureBlogVault cloudDropbox, S3, FTP
One-click restoreYesYesYesVia script
Multisite supportNoYesYesYes (Pro)
WooCommerce-awareNoNoYesNo
PriceFree$70/year$89/yearFree

Method 3: Hosting-Level Backups

Most hosting providers offer their own backup solutions, either included in your plan or as an add-on. These backups are typically automated and managed at the server level.

What Hosting Backups Typically Include

Managed WordPress hosts usually provide daily automatic backups, 14-30 day retention, one-click restore from the hosting dashboard, and separate backup storage from your main server. Shared hosting providers may offer less frequent backups (weekly) with shorter retention (7 days) and may charge extra for the backup feature.

Why Hosting Backups Are Not Enough

While hosting backups are valuable, relying on them as your sole backup strategy has risks:

  • Single point of failure: If the hosting provider experiences a catastrophic failure, both your site and your backups could be lost.
  • Provider policies: Some hosts do not guarantee backup availability or restoration success. Their terms of service often state that backups are provided as a courtesy.
  • Limited control: You typically cannot download hosting backups for offsite storage or select specific components to restore.
  • Account termination risk: If your hosting account is suspended or terminated, you may lose access to backups.

Use hosting backups as one layer of your backup strategy, not the only layer.

Backup Schedule Recommendations

Your backup frequency should match how often your site content changes and how much data you can afford to lose (your Recovery Point Objective, or RPO).

Site TypeDatabase BackupFile BackupRationale
Blog (weekly posts)DailyWeeklyContent changes infrequently; files rarely change
Business site (static)DailyWeeklyContent updates are infrequent
Active blog (daily posts)Every 6 hoursDailyFrequent content changes need more granular backups
WooCommerce storeEvery 4-6 hoursDailyOrders and customer data change continuously
Membership / LMS siteEvery 4-6 hoursDailyUser-generated content and progress data
High-traffic e-commerceReal-time (incremental)Every 6 hoursEvery lost transaction affects revenue

The 3-2-1 Backup Rule

Follow the widely recommended 3-2-1 backup rule:

  • 3 copies of your data (the live site plus two backup copies)
  • 2 different storage media (e.g., server + cloud storage)
  • 1 copy stored offsite (a different physical location from your server)

In practice, this means: your live site is copy one, a backup on your server (or hosting provider's backup) is copy two, and a backup in cloud storage (Google Drive, S3, Dropbox) is copy three. The cloud copy satisfies both the "different media" and "offsite" requirements.

Testing Your Backup Restore Process

A backup that you have never tested is a backup you cannot trust. Schedule periodic restore tests to verify your backup integrity.

How to Test a Restore

Step 1: Create a staging environment or a local WordPress installation for testing. Never test restores on your live site.

Step 2: Download your most recent backup (both files and database).

Step 3: Restore the backup to your staging environment using the same method you would use in an emergency.

Step 4: Verify the restored site: check that pages load correctly, images display, WooCommerce products appear, user accounts exist, and plugin settings are intact.

Step 5: Document the restore process, including how long it took. This is valuable information if you ever need to perform an emergency restore under pressure.

Test your restore process at least once per quarter. If you change your backup method or storage location, test immediately after the change.

Offsite Backup Storage Options

Storage ServiceFree TierPaid StorageNotes
Google Drive15 GB$1.99/month for 100 GBEasy integration with UpdraftPlus; shared with Gmail/Photos
Dropbox2 GB$11.99/month for 2 TBReliable; good API; folder-based organization
Amazon S35 GB (12 months)~$0.023/GB/monthScalable; pay-as-you-go; lifecycle policies for cost control
Backblaze B210 GB$0.005/GB/monthCost-effective for large backups; S3-compatible API
Microsoft OneDrive5 GB$1.99/month for 100 GBIncluded with Microsoft 365 subscriptions

Backup Before Critical Actions

Beyond your regular schedule, always create an on-demand backup before performing any of these actions:

  • WordPress core updates (especially major version upgrades)
  • Plugin or theme updates (especially for complex plugins like WooCommerce, page builders)
  • PHP version changes on your server
  • Database modifications or migrations
  • Bulk content edits or imports
  • Server or hosting migrations
  • Installing new plugins that modify the database

Having a backup taken immediately before these actions allows you to roll back to a known-good state if anything goes wrong. For ongoing site maintenance tasks, refer to our WordPress maintenance guide.

Frequently Asked Questions

How long does a WordPress backup take?

Frequently Asked Questions

How often should I back up my WordPress site?
Daily backups are recommended for sites with frequent content changes, e-commerce activity, or user-generated content. Weekly backups are sufficient for static sites with occasional updates. Always create a manual backup before major changes like plugin updates or migrations.
What is the difference between full and incremental backups?
A full backup copies everything: database, files, themes, plugins, and uploads. An incremental backup only copies files that changed since the last backup, using less storage and bandwidth. Most backup plugins support both methods.
Where should I store my WordPress backups?
Store backups in at least two separate locations away from your web server. Popular options include cloud storage services like Google Drive, Dropbox, Amazon S3, or a dedicated backup service. Avoid storing backups only on the same server as your website.
Can I restore my site from a backup if my hosting account is compromised?
Yes, as long as your backups are stored externally. This is why off-site backup storage is essential. Download your backup files and restore them to a clean server or a fresh hosting account.
Do hosting providers include backups?
Many managed WordPress hosts include daily backups with one-click restore. However, relying solely on hosting backups is risky. Maintain your own independent backups as a secondary safety net in case of hosting-level failures or account issues.

Share this post

About the Author

Can Bayar
Can Bayar

WordPress Expert

Senior WordPress developer with over 10 years of experience in plugin and theme development. Specialized in WooCommerce, Elementor, and performance optimization.

WordPressWooCommerceElementorPHPJavaScriptPerformance Optimization

Stay Updated

Get the latest WordPress tips and tutorials delivered to your inbox.