Backup & restore PRO
Built-in database backups: back up now with one click, restore safely (with an automatic safety backup first), upload a backup from another site, schedule automatic backups with retention and e-mail alerts, and keep copies in Google Drive. Only administrators can use this screen.

Create a backup#
| Scope | What is included |
|---|---|
| WooCommerce + StoreCashier only (default) | All WooCommerce and StoreCashier tables, products, variations, orders, refunds, coupons, categories / tags / attributes, order notes, reviews, customer and staff users (not administrators) and the WooCommerce / StoreCashier settings. Smaller and faster. |
| Entire database | Every table of this site: pages, posts, users, all plugins and settings. (On multisite only this site's tables.) |
- Choose the scope and click Back up now.
- A progress card shows “Exporting table (x / y rows)”. Keep the tab open; leaving pauses the job. Cancel stops it.
- When it says “Backup complete.” the file is in the Backups list.
The database is exported in small steps into a compressed .sql.gz file, so large stores do not time out. Each file has a header with a checksum. Files are stored in wp-content/uploads/storecashier-backups/<random folder>/, protected from direct download. License data, the backup module's own settings and update caches are never included (and never overwritten by a restore). Requires the PHP zlib extension. Only one backup / restore job runs at a time.
The Backups list#
Columns: Actions, Date, Scope, Size, Type (Manual, Automatic, Safety (pre-restore), Uploaded), Location (Local, Google Drive or both) and Status (Complete, File missing, Drive upload failed — hover for the error). Backups made on another site are marked “From another site”.
Actions: Download, Restore…, Upload to Google Drive (when connected) and Delete (also deletes the Drive copy if there is one; cannot be undone).
Restore a backup#

- Click Restore… on a backup. The Restore backup panel explains exactly what will be replaced:
- Entire database: replaces every table in the backup; anything created after the backup was taken is lost. Site URL, license and backup settings keep their current values. You may be signed out afterwards.
- WooCommerce + StoreCashier: replaces WooCommerce / StoreCashier data, non-admin customer / staff users and plugin options. Pages, posts, other plugins' data and administrator accounts are not touched.
- Type RESTORE in the confirmation field and click Restore now.
- StoreCashier then: (1) takes a safety backup of the same scope, (2) verifies the file's checksum and loads the data into temporary tables — your live data is untouched until everything checks out, (3) puts the storefront in maintenance mode (“We are restoring a backup and will be back in a few minutes.”) and applies the changes in one database transaction — all or nothing. Keep the tab open until it finishes.
- The report says “Restore completed successfully.” with rows restored per table. To undo, restore the safety backup listed under Backups.
If anything fails you see e.g. “Checksum mismatch: the backup file is damaged or was modified. Nothing was restored.” or “Restore failed and was rolled back — your data is unchanged.”
Restore from a file#
Upload a StoreCashier backup (.sql.gz or .sql, up to 2 GB) with Upload & check. It is uploaded in small pieces (not limited by PHP's upload size), checked for a valid StoreCashier header and added to the list; then restore it as above. Backups from a newer StoreCashier version are refused (“Update StoreCashier Pro first”). This is also the way to move a shop to a new server.
Automatic backups#

| Setting | What it does | Default |
|---|---|---|
| Automatic backups | Enabled / Disabled. When enabled, the card header shows “Next: date”. | Disabled |
| Frequency | Every 12 hours, Daily, Weekly or Monthly. | Daily |
| Time of day (site time) | When it runs — choose a quiet hour. | 02:00 |
| Day of week / Day of month (1–28) | For weekly / monthly backups. | Monday / 1 |
| Scope | Entire database or WooCommerce + StoreCashier. | WooCommerce + StoreCashier |
| Keep the last N automatic backups (0 = no limit) | Older automatic backups beyond this number are deleted. | 7 |
| Delete automatic backups older than (days, 0 = never) | Age limit. | 30 |
| Notification e-mail | Where alerts go (empty = admin e-mail). | — |
| E-mail me when an automatic backup fails / succeeds | “[site] Automatic backup FAILED” / “… completed” e-mails. A failure also shows an admin notice. | Fails: on · Succeeds: off |
| Upload automatic backups to Google Drive | Copies each automatic backup to Drive. | Off |
| Delete the local copy after a successful Google Drive upload | Saves server disk space. | Off |
| Also upload manual backups to Google Drive | — | Off |
| Retention also deletes the Google Drive copies | Keeps Drive tidy with the same rules. | On |
Retention only removes automatic backups; manual, safety and uploaded backups stay until you delete them. Automatic backups run in the background (WooCommerce Action Scheduler, or WP-Cron); on low-traffic sites set up a real server cron job so they run on time. Click Save schedule.
Google Drive#

StoreCashier connects with your own Google Cloud credentials and can only see files it creates (the drive.file permission). One-time setup, about 5 minutes (the guide is also on the screen):
- Open the Google Cloud Console and create a project (e.g. “StoreCashier Backups”).
- APIs & Services → Library → Google Drive API → Enable.
- OAuth consent screen: choose External, enter the app name and your e-mail, add the scope
…/auth/drive.file, add your account as a Test user, then Publish app (otherwise the connection expires after 7 days). - Credentials → Create credentials → OAuth client ID → Web application. Under “Authorized redirect URIs” paste the URI shown on the StoreCashier screen (use its Copy button).
- Paste the OAuth Client ID and OAuth Client secret into StoreCashier, optionally change the Drive folder name (default “StoreCashier Backups”, created automatically) and click Save credentials. The secret is stored encrypted and never shown again.
- Click Connect Google Drive and allow access. The status changes to “Connected: your e-mail”.
Afterwards: Test connection (“Connected as … — folder … is ready.”), Reconnect and Disconnect (existing Drive copies stay in your Drive). If Google returns no refresh token, remove the app's access at myaccount.google.com/permissions and connect again.
Backup activity log#
A collapsible list of the last 30 backup, restore and upload events — useful to see why an automatic backup failed.
The screen says “Backup & Restore is a StoreCashier Pro feature.”
The license is not active. Activate it to create backups; the activity log stays visible.
Can I restore a backup from my live site on a test site?
Yes — upload it with “Restore from a file”. It is marked “From another site”. Site URL and license are never overwritten, so the test site keeps its own address.