Skip to content

WordPress WooCommerce backup strategy — beyond JetBackup

WordPress WooCommerce backups need point-in-time recovery, off-site storage, and validated restores. The strategy beyond a daily cPanel snapshot — DB binlogs, S3 lifecycle, and the restore drill.

A WordPress WooCommerce store relies on JetBackup running nightly to /backup on the cPanel server. That is what most stores have. It is enough to recover from “a plugin update broke the site.” It is not enough to recover from “a Wednesday afternoon ransomware encrypted the server and the on-host backups.” The WooCommerce backup strategy worth the operator’s time has three components: point-in-time DB recovery, off-site storage, and a quarterly restore drill nobody runs but everyone benefits from.

What’s happening

WordPress WooCommerce stores need to back up:

  1. The database. Orders, customers, products, settings — the irreplaceable layer.
  2. Uploads (wp-content/uploads/). Product images, downloadable products, WC logs.
  3. wp-content/plugins/ and wp-content/themes/. Recoverable from source if versioned in git; not so much for typical WooCommerce stores.
  4. wp-config.php and any custom mu-plugins. Small but critical.

JetBackup and similar cPanel-bundled tools do a nightly file-and-DB snapshot, retained on the same disk (or the same datacenter rack). They are convenient and they fail when the host fails. The 3-2-1 rule — 3 copies, 2 storage types, 1 off-site — is the baseline.

The additional layer for WooCommerce specifically is point-in-time recovery on the database. JetBackup’s nightly snapshot loses up to 24 hours of order data. For a store taking 500 orders a day at $100 each, that is $50,000 of orders potentially gone. Binary log replication closes the gap.

How to verify

# What backups exist right now?
ls -lh /home/<account>/jetbackup/
ls -lh /backup/cpbackup/daily/

# When did the last successful backup run?
tail -50 /var/log/jetbackup.log 2>/dev/null
grep "Backup completed" /var/log/jetbackup.log | tail -5

# Off-site backup destinations configured?
# JetBackup: Settings → Destinations
# cPanel: WHM → Backup Configuration → Additional Destinations

# DB size — what are we actually backing up?
wp db size --tables --format=table | head -20

# Binary logs enabled on MySQL/MariaDB?
mysql -e "SHOW VARIABLES LIKE 'log_bin'"
mysql -e "SHOW VARIABLES LIKE 'binlog_expire_logs_seconds'"

# Last binlog rotation
ls -la /var/lib/mysql/mysql-bin.* | tail -5

# WP-CLI backup of WooCommerce critical tables (subset, useful as a sanity check)
wp db export woocommerce-only.sql --tables=wp_wc_orders,wp_wc_order_addresses,wp_wc_order_operational_data,wp_wc_order_stats,wp_wc_orders_meta,wp_wc_customer_lookup,wp_woocommerce_order_items

# Restore-drill record — when did we last test a restore?
# (no automated check; this is documentation discipline)

The most useful signal is the date of the last restore drill. If you cannot answer “when did we last restore a backup to a sandbox and confirm WooCommerce came up clean,” you do not have a backup strategy. You have backup files of unknown utility.

The fix

  1. Add an off-site destination. S3 (or Wasabi, or Backblaze B2). Configure JetBackup or your backup plugin to push the nightly archive to an S3 bucket in a different region than your host. Lifecycle policy: keep 7 daily, 4 weekly, 12 monthly. For a typical WooCommerce store this costs under $20/month.
  2. Enable binary logs on MySQL/MariaDB. In my.cnf:
    [mysqld]
    log-bin = mysql-bin
    binlog_format = ROW
    binlog_expire_logs_seconds = 604800  # 7 days
    server-id = 1
    Restart MySQL/MariaDB. Now any point-in-time between the last full backup and now can be reconstructed by replaying binlogs against the last snapshot.
  3. Use a tool that understands WooCommerce. WP Migrate, UpdraftPlus, BlogVault, BackupBuddy. Verify the tool backs up the HPOS tables (wc_orders and friends), not just wp_posts. Some older tools predate HPOS and silently skip the new tables.
  4. Document the restore procedure. A one-page runbook with the exact commands:
    1. Provision sandbox server
    2. Download backup from S3: aws s3 cp s3://...
    3. Restore DB: wp db import backup.sql
    4. Restore files: tar xzf uploads.tar.gz -C wp-content/
    5. Update site URL: wp search-replace 'oldsite.com' 'sandbox.example.com'
    6. Confirm: wp wc shop_order list --per_page=5
  5. Run a restore drill quarterly. Pick a Friday afternoon. Restore last night’s backup to a sandbox. Confirm WooCommerce admin loads, products render, a test checkout works. If anything fails, the strategy was theatre. Document what failed and fix.
  6. Encrypt off-site backups. Backup files in S3 should be server-side encrypted at minimum, ideally with a customer-managed KMS key. Backup files contain PII (customer names, addresses, order history) — they are subject to the same data-protection rules as the live database.

For the underlying backup mechanics, the existing WordPress wp-backup-3-2-1-strategy article is the foundation. Pair with managed enterprise WordPress hosting for the drill cadence and the audit trail.


Stack Harbor runs WordPress WooCommerce backup strategies under managed enterprise WordPress hosting — the off-site posture, the binlog layer, and the quarterly restore drill. If you have backups but nobody has ever restored one, we can run the drill.