Skip to content

Backing Up Your Online Store

A backup guide for online stores: what to back up (files + database + orders and customers), how often (based on sales volume), the 3-2-1 rule and off-site backups, automatic backups at the hosting level and with plugins, restore testing, and restoring with minimal downtime when disaster strikes — with tables and a checklist.

E-commerceنورة العنزي32 min read
Illustration of a cart and order slips copied into a vault with a clock, representing backing up an online store
On this page

Many store owners build a backup strategy that would be "good enough" for a regular site, then are surprised when their store loses real data despite having backups. The reason is that a store is a living thing: while you sleep, orders come in, accounts are created, stock levels change and shipping statuses are updated. Any backup that doesn't keep pace with this rhythm leaves a gap that can cost you money, customer trust and possibly legal obligations. In this reference we build a backup strategy designed specifically for stores: exactly what to back up, how often based on your sales volume, where to store it, how to automate it without burdening the store at peak times, and how to restore with minimal downtime when disaster strikes.

Why is backing up a store more critical than backing up any other site?

A brochure site or a blog has fairly static content: you publish an article today, and nothing may change for a week. If you lose a day of its data, the worst that usually happens is rewriting a post. A store is fundamentally different: its data is transactional and changes constantly, and every record in it represents money and an obligation to a real customer waiting for their product.

Picture this realistic scenario: your store backs up every night at 2 a.m. At 3 p.m. it breaks because of a failed plugin update. You restore the midnight backup and the site comes back — but you have lost all of today's orders that came in after the backup: customers who actually paid through the payment gateway, but whose orders no longer exist in your store. Now you have collected money with no matching orders, angry customers, and painful manual reconciliation with the payment gateway. This isn't a loss of content you can rewrite; it is a direct financial and operational loss.

Three dimensions that multiply the loss

DimensionOn a regular siteOn an online store
MoneyNo direct lossMissing paid orders + payment gateway reconciliation
TrustDelayed contentCustomers who paid and never got their product
ComplianceLimitedPersonal customer data subject to data protection rules
StockNoneConflicting quantities that lead to selling out-of-stock items
OperationsRepublishingComplex manual account reconciliation

The first dimension is direct money: every lost order = the sale value + the likelihood of a chargeback later, when a customer who paid and received nothing disputes it. The second dimension is trust: a customer who paid and can't find any trace of their order rarely comes back, and often tells the world about it. The third dimension is compliance: customer data (names, addresses and phone numbers) is personal data subject to data protection rules, and losing or leaking it during a chaotic restore can saddle you with notification obligations and fines.

The rate of change is the decisive difference

The core idea: what makes backups hard is not the size of the data but how fast it changes. A blog with thousands of articles that changes only weekly is easier to back up than a small store that receives an order every few minutes. The busier your store, the less time you can afford to lose, and the more important frequent, near-real-time backups of the orders tables become. We will give this concept a precise name shortly (RPO), but its essence is that an active store simply cannot live with "one daily backup."

What exactly should you back up in a store?

The most common mistake is backing up only one part. A WooCommerce store — like any dynamic WordPress site — consists of two inseparable halves: files on the file system, and a database that holds all the transactional content. Backing up the files alone gives you an "empty store" with no orders or products; backing up the database alone gives you "data with no front end." A working store needs both halves, in sync.

Components of a complete store backup

ComponentIncludesWhere it livesEssential?
Core filesThe core WordPress filesFile systemRecommended (faster to restore)
WooCommerce and its extensionsThe store plugin + payment/shipping pluginswp-content/pluginsYes — critical
The theme and its customizationsThe store theme and customizationswp-content/themesYes
Media (uploads)Product images, order attachmentswp-content/uploadsYes — critical
Configuration filewp-config.phpRootYes
DatabaseAll tables (see below)MySQL/MariaDBYes — the heart of the store
Server files.htaccess, nginx config, cronRootRecommended

What does a store's database hold?

This is where a store truly differs. The database doesn't hold only articles and settings, but all the live transactional data. The following table details the most important things you back up within the database, and why losing them is unforgivable:

DataExample WooCommerce tablesWhy it is critical
Orderswc_orders, wc_order_* (HPOS) or posts/postmetaEvery order = money and a delivery obligation
Customersusers, usermeta, wc_customer_lookupPersonal data + purchase history
Products and stockposts, postmeta, wc_product_meta_lookupQuantities, prices and variations
Coupons and discountsposts (coupon type)Active values and validity periods
SettingsoptionsPayment gateways, shipping, taxes
Sessions and cartswc_sessionsCarts in progress

Important note: modern WooCommerce uses High-Performance Order Storage (HPOS) in dedicated tables (wc_orders and its siblings) instead of the old posts/postmeta tables. Whatever your store's setup, a complete database backup captures the right tables automatically — don't try to back up "selected tables" manually in a store, because you may miss critical ones.

Keeping the two halves in sync: why it matters more for a store

A file backup taken at a time far from the database backup causes inconsistencies on any site, but on a store it is catastrophic. Imagine a database that points to a product image that doesn't exist in the file backup, or to an order with an invoice file that isn't there. The more active the store, the more important it is to capture both halves in a single operation, at as close to the same moment as possible. That is why backup tools that capture the files and database together in a consistent snapshot beat tools that back up each part separately with a time gap.

How often should you back up your store? Frequency by sales volume

There is no single answer. The right frequency is determined by two disaster-recovery concepts we will explain shortly, but the practical rule is clear: the higher the sales volume, the less time you can afford to lose, and the higher the frequency you need — especially for the orders table.

Frequency table by store activity

Use the following table as a starting point, then adjust to your actual activity:

Store sizeOrder rateFull-site backup frequencyOrders/database backups
New storeA few orders a dayDailyDaily
Mid-sized storeDozens of orders a dayDaily to every 6 hoursEvery 6–12 hours
Active storeOrders every hourEvery 6 hoursEvery 1–3 hours
High-traffic storeOrders every few minutesEvery 6–12 hoursNear real time / continuous (incremental backups)
Peak season (sales)Exceptional peakIncrease temporarilyHourly or more often

Note the important distinction between the last two columns: you don't need to back up the entire store (with its heavy files) every hour. It is enough to back up the database — where orders and customers live — at a high frequency, while backing up the files (images, plugins) less often because they change more slowly. This split gives you strong protection for orders without burdening the server with huge file backups every hour.

RPO and RTO: the backbone of the frequency decision

Every backup decision flows from two numbers that you should set deliberately, not by guesswork:

ConceptThe question it answersWhat it means for a store
RPO (Recovery Point Objective)How much data, measured in time, can I afford to lose?If you back up hourly, RPO = one hour
RTO (Recovery Time Objective)How long can I afford for the store to be down?Determines how fast your restore method must be

Apply this to your store with a blunt question: would you accept losing a full hour of orders? Two hours? A day? Your answer is your RPO, and it determines the backup frequency. A store selling 100 riyals' worth an hour may tolerate an RPO of two hours; a store selling thousands an hour can't tolerate more than minutes and needs continuous incremental backups of its orders. RTO, on the other hand, determines the method of restoring, not its frequency: if your store can't tolerate more than an hour of downtime, you need a server snapshot that restores quickly, not a full backup that takes hours to transfer.

Scheduled backups vs. backups before changes

Regular frequency protects you from sudden failures, but it isn't enough on its own. Make this your standing rule: take a full manual backup before any risky operation — updating WooCommerce or a payment plugin, changing the theme, running a query on the database, or migrating the store. This "safety copy before the leap" has saved countless stores. And if you are still in the setup stage, backups are an integral part of launching a sound store; see the WooCommerce store launch guide to set your priorities from the start.

The 3-2-1 rule applied to a store

The 3-2-1 rule — three copies, on two different media, with one off-site — is the gold standard for protecting any data, and its full explanation and rationale are in the website backup guide. What matters here is applying it to a store specifically, because the common mistake among store owners is one in particular: relying on a copy on the same server. That copy saves you from a failed update or an accidental deletion, but it won't save you at all from a compromised hosting account, ransomware that encrypts your files, or a host suspending your account in a dispute — because it goes down with what it protects.

The 3-2-1 backup ruleStore dataFiles + database + ordersCopy on the serverFast recoveryCopy on another mediumDifferent disk/deviceOff-site copyCloud / remote site3 copies · on 2 different media · 1 of them off-siteAnd test restores regularly — a backup you can't restore isn't a backup
The 3-2-1 backup rule: keep 3 copies of your data, on two different media, with one off-site — and test restores regularly.

The practical application for a typical store: a daily snapshot at your host for fast restores, an automated copy to object storage at a different provider (S3-compatible), and a monthly copy you download to storage that only you control. Three copies, two media, and one geographically remote. The first gives you speed; the third gives you survival.

Store backup methods

There are four main ways to back up a store, and each has its place. A strong strategy doesn't pick one; it builds independent layers from more than one method, so the failure of one doesn't mean the failure of all.

MethodHow it worksProsCons
Hosting levelSnapshots/JetBackup from the host's panelAutomatic, fast to restore, no load on the siteOften on the same server, limited portability
PluginsUpdraftPlus/BlogVault inside WordPressEasy, built-in off-site, schedulingConsumes site resources during backups
Manually with commandsmysqldump + tar over SSHFull control, precise, flexible off-siteRequires technical knowledge and manual scheduling
Specialized external serviceBlogVault/managed systemsIncremental backups, restore testingSubscription cost

Combine the methods into three independent layers, each with a different mechanism, location and set of permissions:

Three layers of safe backupsSnapshotOff-siteApplicationInfra snapshotFull off-site backupApp-level backupFast recoveryOf the whole serverSurvives failureof the server itselfFiles + databaseSeparate data
Three layers of protection: a fast snapshot, a full off-server (off-site) backup, and an application/database-level backup.
LayerMechanismFrequencyRole
Fast snapshotAt the hosting/server levelDaily or more oftenFast recovery of the whole server
Full off-site backupA plugin/script that uploads to a remote cloudDaily + more frequent database backupsSurvives failure of the server itself
Application-level backupExporting files + database manually/on a scheduleWeekly/monthlyA portable copy you can move anywhere

Why aren't snapshots enough on their own?

A host snapshot is convenient and fast, but it isn't a full backup in the strict sense: it is usually tied to the same infrastructure, so if the underlying storage fails, the snapshot may go down with it. It also captures "the state as it is," including any compromise or data corruption at the moment of the snapshot. Treat it as an excellent fast-recovery layer, but don't make it a substitute for a full off-site backup that you can move to a completely different provider when needed.

Choosing a host that offers regular backups and easy-to-restore snapshots is an important factor in the decision from the outset; a store also benefits from fast hosting that makes restoring and running smooth, which ties in with speeding up a WooCommerce store.

Comparing backup plugins for stores

Backup plugins are the easiest method for most store owners. The table compares the leading ones from a store's perspective specifically:

PluginIncremental backupsBuilt-in off-siteRestore testingFit for a store
UpdraftPlusIn the paid versionYes (multiple clouds)Easy restore, no automated testingGood for small/mid-sized stores
BlogVaultYes (default)Yes (independent external storage)Yes (staging site for restores)Excellent for active stores
Jetpack VaultPressYes (near real time)Yes (Jetpack servers)One-click restoreExcellent if you want full management
DuplicatorNo (full backups)In the paid versionNoGood for migrations and periodic backups

Why do incremental backups matter for stores?

A full backup copies everything from scratch each time — it is expensive in resources and time, and you can't run it every hour on a live store without slowing it down. Incremental backups copy only what changed since the last backup, which makes them light enough to run in near real time — exactly what an active store needs to protect its orders table with a small RPO without burdening the server. That is why incremental tools (such as BlogVault and VaultPress) beat tools that take a full backup every time when a store has high traffic.

Automatic backups at the hosting level

Many managed WordPress/WooCommerce hosting plans offer automatic daily backups and sometimes more frequent snapshots. Their advantage is that they run logically outside the site and don't consume your store's PHP resources during the backup, so they don't slow down the shopper experience. Their drawback is that they may sit on the same infrastructure. The rule: use host backups as a convenient, fast layer, but always own your own off-site copy and never rely on the host alone.

Backing up with commands: a precise copy under your control

For stores on a VPS, or anyone who wants full control, backing up with commands over SSH gives you a precision plugins can't match. The golden rule for live stores: run these commands during quiet hours, away from peak times — mysqldump places locks that can slow down in-progress orders, and tar on a large folder consumes I/O. Pick a low-traffic window (for example, the early morning in most of your customers' time zone) before scheduling.

Backing up the database

Use wp db export (the smartest option for WordPress, since it reads the configuration automatically) or mysqldump directly:

bash
# Preferred method via WP-CLI (reads wp-config.php automatically)
wp db export /backups/store-db-$(date +%F-%H%M).sql --add-drop-table

# Or mysqldump directly — with options that are safe for a live store
mysqldump \
  --single-transaction \
  --quick \
  --routines \
  --triggers \
  --default-character-set=utf8mb4 \
  -u DB_USER -p DB_NAME > /backups/store-db-$(date +%F-%H%M).sql

These options aren't cosmetic: --single-transaction takes a consistent snapshot without locking tables (vital for a live store so orders don't stop during the backup), --quick reduces memory use on large databases, --routines --triggers capture the stored procedures and triggers that some WooCommerce plugins use, and utf8mb4 preserves symbols and emoji in product names and addresses.

Archiving the files

bash
# Archive the site files, excluding cache and old backups to reduce size
tar -czf /backups/store-files-$(date +%F).tar.gz \
  --exclude='wp-content/cache' \
  --exclude='wp-content/uploads/backups' \
  -C /var/www/store .

Excluding the cache and any backups stored inside the site reduces size, time and storage cost, and lowers the chance of the job failing because the disk runs out of space.

Moving the backup off-site

A backup has no value if it stays on the server. Upload it immediately to a remote provider via rsync (to another server) or a cloud tool (for S3-compatible object storage):

bash
# Transfer to a remote server via rsync over SSH
rsync -avz --progress /backups/ backupuser@offsite-host:/remote/backups/

# Or upload to S3-compatible object storage
aws s3 cp /backups/store-db-$(date +%F-%H%M).sql \
  s3://my-store-backups/db/ --storage-class STANDARD_IA

Scheduling with cron away from peak hours

Combine the commands into a single script, then schedule it for the early morning. Adjust the timing to match your store's quietest hours:

bash
# Edit the cron table
crontab -e

# Database backup every 3 hours (small RPO for orders)
0 */3 * * * /usr/local/bin/wp db export /backups/db-$(date +\%F-\%H).sql --path=/var/www/store

# Full backup (files + database) daily at 4 a.m. + upload off-site
0 4 * * * /usr/local/bin/store-backup.sh >> /var/log/store-backup.log 2>&1

Note the database frequency (every 3 hours), separate from the full backup (daily): it protects orders intensively without copying the heavy files every time — a practical application of the RPO principle we explained.

Encrypting and protecting backups

A store backup contains personal customer data, so protecting it is an obligation, not a luxury. A leaked unencrypted backup = a complete data leak of your customer base. Encrypt backups before uploading them off-site:

bash
# Encrypt the backup archive with GPG before uploading
gpg --symmetric --cipher-algo AES256 \
  /backups/store-files-$(date +%F).tar.gz

# Restore later
gpg --decrypt store-files-2026-06-13.tar.gz.gpg > store-files.tar.gz
PracticeReason
Encrypting off-site backupsCustomer data = a protection obligation
Separate permissions for backup storageA site compromise can't reach the backups
Not storing backups inside the site's public rootPrevents them from being downloaded via a browser
Short-lived cloud access keysLimits the impact of a leaked key

A common and dangerous warning: never leave backup files (.sql or .tar.gz) in a folder that is publicly reachable by a browser. Many stores have been breached because a database backup could be downloaded through a direct link. Always store backups outside the public root, and combine this with the other layers of defense in Securing your online store.

Transactional consistency: why a live store's backup may be broken

This problem is almost unique to stores, and most owners only discover it at the moment of restoring. A backup is not a single instant but a process that takes minutes: the files are copied first and then the database, or the other way around. And on a live store, orders arrive during exactly those minutes.

The result is an inconsistent backup: an order recorded in the database while its invoice file or customer attachment didn't exist yet when the files were copied. Or the reverse: a file that exists with no record pointing to it. The site will work after the restore and no explicit error will appear — but one or more orders will be incomplete, and you may not know which.

Three ways to solve it, ranked from best:

MethodHow it worksWhen to use it
Disk-level snapshotFreezes the state of the whole system at a single momentThe best — available on most VPS and cloud servers
Dumping the database within a single transactionReads the database exactly as it was when the dump startedExcellent for InnoDB tables, and doesn't stop the store
Maintenance mode during the backupPauses new orders temporarilyLast resort — costs sales

The second method is the easiest to apply on most hosting, and it is enabled with a single option when dumping the database:

bash
mysqldump --single-transaction --quick --routines \
  -u DB_USER -p DB_NAME > store-backup.sql

The --single-transaction option makes the dump read a consistent snapshot of the database without locking tables, so your store keeps accepting orders during the backup. It does not work with MyISAM tables — check that your tables use InnoDB first, which is the default in any modern installation.

And pay attention to the order: back up the database first, then the files. If an order arrives in between, you will find a file with no record — far less harmful than a record with no file, because an orphaned file breaks nothing, while an incomplete record breaks the order page.

The gap that costs money: orders between the last backup and the disaster

Even a perfect backup can't bring back what wasn't in it. If the last backup was at midnight and disaster struck at noon, every order that arrived in those twelve hours isn't in the backup — and its customers have already paid.

This distance is called the recovery point objective, and it is the real financial decision in a backup strategy: how many hours of orders can you afford to lose? A store selling five orders a day may be fine with a daily backup; a store selling two hundred loses the equivalent of a full business day with a daily backup.

And most importantly: the payment gateway isn't restored along with your site. Payment records are kept at the gateway, not on your side, and that is a blessing — they are your reference for closing the gap. After any restore, carry out these steps in order:

  1. Pause order processing temporarily until reconciliation is done, so new orders don't get mixed into the gap.
  2. Export from the payment gateway dashboard all successful transactions from the time of the last backup up to the moment of the disaster.
  3. Compare them with your restored store's orders — every successful transaction with no matching order is a customer who paid and has no order.
  4. Recreate the missing orders manually and contact their customers transparently before they contact you.
  5. Review your stock — quantities have reverted to what they were at backup time, so correct them before you sell what you no longer have.

Many people skip the last step, and a technical disaster turns into a customer problem: the restored stock says you have ten units, while seven of them were sold during the gap. See Securing your online store to reduce the chance of a disaster in the first place.

Restore testing: an untested backup isn't a backup

This is the most important section of the guide, and the most neglected. Many people back up regularly for a whole year, then discover when disaster strikes that their backups are corrupted, incomplete, or won't restore. A backup's only value is its ability to bring the store back — and a backup whose restore was never tested is just an illusion of safety.

How do you test a restore without touching the live store?

StepAction
1. A separate environmentRestore the backup to a staging site or a local server
2. Import the databasewp db import, then check the number of orders and customers
3. Extract the filesUnpack the archive and confirm the Uploads folder is complete
4. Visual checkOpen the store, browse a product, open an old order
5. Data checkConfirm the latest orders and stock match
6. Record the timeNote how long the restore took (this is your actual RTO)
bash
# Restore a database in a staging environment
wp db import /backups/store-db-2026-06-13.sql --path=/var/www/staging

# Quick check of order integrity after the restore
wp wc shell --user=admin --path=/var/www/staging
# Or a direct query to count orders
wp db query "SELECT COUNT(*) FROM wp_wc_orders;" --path=/var/www/staging

Make testing a routine

Testing once isn't enough, because the store changes and plugins get updated. Make restore testing a habit at least quarterly (and monthly for critical stores). Each test does two things: it proves your backups are sound, and it measures your actual RTO so you know how long the store will take to come back during a real disaster — before you need it under pressure.

Restoring with minimal downtime when disaster strikes

When disaster strikes — a breach, an update that broke the store, an accidental deletion, a server failure — every minute of downtime costs you sales. The goal: an organized restore that minimizes downtime and prevents losing more orders. Don't restore haphazardly in a panic; follow a deliberate sequence.

Restore checklist

StepActionReason
1. Diagnose firstIdentify the cause of the failure before restoringRestoring on top of an unresolved cause repeats the failure
2. Enable maintenance modePause new orders temporarilyPrevents orders from being lost during the restore
3. Choose the right backupThe most recent healthy backup before the failureA post-breach backup is contaminated
4. Restore the databaseImport the most recent healthy orders backupKeeps order loss to a minimum
5. Restore the filesUnpack the matching file archiveBoth halves match
6. VerifyCheck orders, stock and paymentsConfirm integrity before reopening
7. Lift maintenance modeReopen the storeA safe return
8. Reconcile the gapCompare payment gateway orders with the storeManually recover any lost order

The critical step: closing the orders gap

Even with the best strategy, you may lose orders between the last backup and the moment of failure. This is where the payment gateway serves as a second source of truth: the gateway dashboard keeps a record of every payment, independent of your store. After the restore, compare the payments in the gateway with the orders in the store, and manually recreate any missing paid order. This step saves you from the worst-case scenario: a customer who paid and whose order vanished.

Common restore scenarios

ScenarioThe right backupCritical note
A plugin update broke the storeThe most recent backup before the updateDisable the plugin after restoring
A breach with injected codeA clean backup from before the breachChange all passwords and keys
Orders deleted by mistakeThe most recent backup before the deletionRestoring only the database may be enough
Server hardware failureA full off-site backupThe local snapshot went down with the server
RansomwareA clean off-site backupIgnore the ransom, restore the remote copy

In the case of a breach specifically: don't automatically restore the latest backup — it may be contaminated with the backdoor. Determine when the breach began, restore a backup from before it, then change all credentials. For a deeper look at handling a breach, see how to detect and remove malware as part of a comprehensive security strategy.

Store security layers and backups together

Backups are the last line of defense, but they are strongest as part of a comprehensive security system: prevention reduces the chance you will need a backup, and the backup saves you when prevention fails. Think of the protection layers and backups as a single system:

Store security layers protecting customer dataWeb application firewall + DDoS protectionRegular automatic backupsPlatform, plugin and theme updatesPermissions and roles + 2FAPCI payment gateway + tokenization (no stored cards)SSL / HTTPS on every pageCustomer and order dataEvery layer protects your customers' data — trust means sales
Store security layers around customer data: SSL/HTTPS, a PCI payment gateway with tokenization, permissions and 2FA, updates, backups, and WAF/DDoS protection.

Combine backups with securing your payment gateways, two-factor authentication for the admin dashboard, regular WooCommerce updates and a web application firewall (WAF). Every prevention layer reduces the disasters that call for a restore, and every healthy backup keeps you ready when a layer is breached. This integration between securing your online store and a strong backup strategy is what turns your store from fragile into resilient.

Common store backup mistakes

MistakeWhy it is dangerousThe right way
A backup on the server onlyGoes down with the server/breachAlways keep an off-site copy
Daily backups for an active storeLosing a full day of ordersMultiple database backups a day
Not testing restoresCorrupted backups discovered during a disasterRegular testing on staging
Excluding the Uploads folderLosing product images permanentlyAlways include Uploads
Backing up at peak timesA slower store and lost ordersSchedule during quiet hours
Unencrypted backupsCustomer data leaksEncrypt before uploading off-site
Keeping only one backupReplacing it loses your historyKeep multiple copies (rotation)
Relying on host backups aloneMay not be contractually guaranteedMultiple independent layers

Expert tips

  • Separate database frequency from file frequency. Back up the database (the orders) intensively and the heavy files less often — an ideal balance between protecting orders and server load.
  • Make the payment gateway your second safety net. Its payment records are independent of your store, so they are your reference for recovering any lost order.
  • Document your restore procedure in writing. During a disaster you won't be thinking clearly; tested written steps save precious minutes.
  • Monitor whether backup jobs succeed. Set up an alert that tells you when a job fails — many disasters are caused by backups that silently stopped months earlier.
  • Increase backups during peak seasons. Sales mean more orders and a smaller RPO; temporarily increase the frequency during them.
  • Keep backups on a rotation. Daily backups for a week + weekly for a month + monthly for a year, so you can go back to before a mistake you didn't notice right away.
  • Test a full restore, not a partial one. Restore the entire store on staging and place a test order to confirm that payment and shipping work after the restore.

Frequently asked questions

What is the difference between backing up a store and backing up a regular site? A store's data is transactional and changes every minute (orders, customers, payments, stock), while a regular site's content is fairly static. That is why a store needs a much higher backup frequency — especially for the orders table — and more precisely synchronized copies, because losing its data means losing money directly, not just content.

How often should I back up my store? It depends on your sales volume (RPO). A new store may be fine with daily backups, while an active store needs database backups every few hours or near real time, plus a full daily backup. Ask yourself: "How many orders can I afford to lose?" — the answer determines the frequency.

Is my host's automatic backup enough on its own? No. Host backups are a convenient layer that restores quickly, but they usually sit on the same infrastructure and may not be contractually guaranteed. Following the 3-2-1 rule, you should own an independent off-site copy that survives even if the host fails, your account is compromised, or your service is suspended.

What is the 3-2-1 rule and why does it matter for a store? Three copies, on two different media, with at least one off-site. It matters for a store because most total-loss scenarios come from keeping all copies in one place; the off-site copy is the only one that survives an account compromise, a host failure or ransomware.

Should I back up my store during peak hours? No. Backing up with mysqldump and tar consumes resources and places locks that can slow down orders or lose them. Schedule heavy backups during quiet hours (usually the early morning), and use --single-transaction with mysqldump to take a consistent snapshot without locking tables on a live store.

Should I back up only the database, or the files too? Both, for a complete restore, but you can back up the database (where the orders live) more often than the heavy files (images, plugins). This split protects orders intensively without burdening the server with huge file backups every hour.

How do I restore my store with minimal downtime? Diagnose the cause first, enable maintenance mode, choose the most recent healthy backup, restore the database and then the matching files, verify orders and stock, then reopen the store, and finally reconcile any missing orders by comparing them with the payment gateway's records.

Why do I need to test restores? Because a backup you have never tried to restore may be corrupted or incomplete without you knowing, and you will find out at the worst possible moment. Test restores regularly in a staging environment to confirm the backups are sound and to measure your actual restore time (RTO) before you need it.

What do I do if I lose orders between backups? Go to your payment gateway's dashboard: its payment records are independent of your store and keep every transaction. Compare the payments with the orders in your store, and manually recreate any missing paid order to close the gap and protect the customer.

How do I protect the backups themselves from theft? Encrypt your backups (for example with GPG/AES256) before uploading them off-site, because they contain customer data. Store them outside the site's public root so they can't be downloaded through a browser, and use separate permissions and access keys so a site compromise can't reach your backup storage.

Do I need more backups during sale seasons? Yes. Peak season means more orders and a smaller RPO, since every hour contains as many sales as several normal days. Temporarily increase backup frequency (hourly or more often for the database) during peak seasons, then return to your usual schedule afterwards.

Conclusion

Backing up a store isn't a task you finish once; it is a living system that keeps pace with your sales. Start by setting your RPO and RTO deliberately, back up the files and the database (with its orders and customers) together and in sync, set the frequency according to your sales volume with extra intensity for the orders table, apply 3-2-1 with an encrypted off-site copy, run backups away from peak times, and most importantly: test restores regularly so you can trust that your store will come back with minimal downtime when disaster strikes. A tested backup is the difference between a passing disaster and a permanent loss.

When choosing hosting for your store, look for a provider that offers regular snapshots and easy-to-restore backups, which makes building this system easier, faster and safer. Combine that with the website backup guide to cement the fundamentals.

Sources

Frequently asked questions

What is the difference between backing up a store and backing up a regular site?

A store's data is transactional and changes every minute (orders, customers, payments, stock), while a regular site's content is fairly static. That is why a store needs a much higher backup frequency — especially for the orders table — and more precisely synchronized copies, because losing its data means losing money directly, not just content.

How often should I back up my store?

It depends on your sales volume (RPO). A new store may be fine with daily backups, while an active store needs database backups every few hours or near real time, plus a full daily backup. Ask yourself: "How many orders can I afford to lose?" — the answer determines the frequency.

Is my host's automatic backup enough on its own?

No. Host backups are a convenient layer that restores quickly, but they usually sit on the same infrastructure and may not be contractually guaranteed. Following the 3-2-1 rule, you should own an independent off-site copy that survives even if the host fails, your account is compromised, or your service is suspended.

What is the 3-2-1 rule and why does it matter for a store?

Three copies, on two different media, with at least one off-site. It matters for a store because most total-loss scenarios come from keeping all copies in one place; the off-site copy is the only one that survives an account compromise, a host failure or ransomware.

Should I back up my store during peak hours?

No. Backing up with mysqldump and tar consumes resources and places locks that can slow down orders or lose them. Schedule heavy backups during quiet hours (usually the early morning), and use --single-transaction with mysqldump to take a consistent snapshot without locking tables on a live store.

Should I back up only the database, or the files too?

Both, for a complete restore, but you can back up the database (where the orders live) more often than the heavy files (images, plugins). This split protects orders intensively without burdening the server with huge file backups every hour.

How do I restore my store with minimal downtime?

Diagnose the cause first, enable maintenance mode, choose the most recent healthy backup, restore the database and then the matching files, verify orders and stock, then reopen the store, and finally reconcile any missing orders by comparing them with the payment gateway's records.

Why do I need to test restores?

Because a backup you have never tried to restore may be corrupted or incomplete without you knowing, and you will find out at the worst possible moment. Test restores regularly in a staging environment to confirm the backups are sound and to measure your actual restore time (RTO) before you need it.

What do I do if I lose orders between backups?

Go to your payment gateway's dashboard: its payment records are independent of your store and keep every transaction. Compare the payments with the orders in your store, and manually recreate any missing paid order to close the gap and protect the customer.

How do I protect the backups themselves from theft?

Encrypt your backups (for example with GPG/AES256) before uploading them off-site, because they contain customer data. Store them outside the site's public root so they can't be downloaded through a browser, and use separate permissions and access keys so a site compromise can't reach your backup storage.

Do I need more backups during sale seasons?

Yes. Peak season means more orders and a smaller RPO, since every hour contains as many sales as several normal days. Temporarily increase backup frequency (hourly or more often for the database) during peak seasons, then return to your usual schedule afterwards.