Skip to content

Vendor-neutral, engineer-written explanations. Clear definitions first, then practical steps with real examples — no fluff.

.How do I schedule backups and auto-backups for Shopware 6?

SB
Written by StageBit Engineering Team
Updated May 2026 3 min readVerified by engineers

Quick Answer

You can schedule automatic backups in Shopware 6 by combining database dumps, media backups, and cron jobs on your server. Most stores use a daily database backup plus regular file backups stored off-server in services like S3, Google Drive, or another remote location. The setup below covers the safest backup structure for production Shopware stores.

Before You Start

  • SSH server access — you’ll need this to create cron jobs and backup scripts.
  • Enough storage space — media-heavy stores can generate very large backups quickly.
  • Database credentials — your backup scripts need access to the Shopware database.
1

Identify backup components

A proper Shopware backup is more than just the database. You need three things: the MySQL database, the public media folder, and custom project files like themes or plugins. Missing one of these usually means you can’t fully restore the store later. Most failed recoveries happen because developers only backed up the database.

  • Back up the Shopware database
  • Include the public/media folder
  • Store plugin and theme customisations
IMPORTANT Backing up only the database will not restore uploaded media or custom code.
2

Create backup scripts

Use shell scripts to automate your backup process. Most setups use mysqldump for databases and tar or rsync for files. Save backups with timestamps so older restore points stay available. Keep the scripts outside the public web directory to avoid accidental exposure.

  • Create a database dump script
  • Compress media and project files
  • Save backups with dated filenames
mysqldump -u USER -pPASSWORD DATABASE_NAME > backup.sql
3

Schedule cron jobs

Once your scripts work manually, automate them with cron jobs. Daily database backups are usually enough for smaller stores. High-order-volume stores often run backups every few hours. Schedule heavy file backups during low-traffic periods so server load stays stable.

  • Open the server crontab
  • Schedule automatic script execution
  • Separate database and media schedules
PRO TIP Run database backups more frequently than full media archives to reduce server load.
4

Store backups remotely

Never keep backups only on the same server as your Shopware store. If the server fails or gets compromised, the backups disappear too. Most production setups push backups automatically to Amazon S3, Google Cloud Storage, Dropbox, or another external storage provider.

  • Upload backups to remote storage
  • Keep multiple restore points
  • Test restoring backups regularly
COMMON MISTAKE Many stores create backups successfully but never test whether the restore process actually works.

Shopware Backup Checklist

0 of 6 complete

Mistakes Most Developers Make

! Skipping media backups

What happens: Product images and uploads disappear after restoration.

Fix: Include the public/media directory in every backup cycle.

! Keeping backups locally

What happens: Server failures wipe out both the store and the backups.

Fix: Push backups automatically to remote cloud storage.

! Never testing restores

What happens: Corrupted or incomplete backups go unnoticed until production fails.

Fix: Run regular test restores on a staging environment.

Key Takeaway

The short version: automatic Shopware 6 backups should always include the database, media files, and custom project code. Use cron jobs to automate the process and push backups to remote storage so they survive server failures. Most recovery problems happen because stores skip media backups or never test restores. Start with Step 1—that one alone handles most of it.

Was this answer helpful?

Your feedback helps us improve our answers.

Still need help?

Talk to our Shopware experts

We've handled GDPR/CCPA compliance for dozens of EU & US Shopware stores.

Talk to Shopware Experts

Tell us more about your brand!

Rohit Kundale, Our VP of Sales and Marketing is ready to meet with your team.