Repository navigation
feat: dump VPS snapshots with shopware-cli project dump - #31
Merged
Merged
Conversation
Replace compose-exec mysqldump/mariadb-dump in sync/backup snapshots with a one-shot ghcr.io/shopware/shopware-cli:0.18.4 container on the Compose network (hostname mysql). Production web images do not ship the CLI. Defaults: --skip-lock-tables --quick --clean --compression=gzip --output db.sql.gz. Anonymize stays off. Fail closed on pull errors; SYNC_DUMP_ENGINE=mysqldump is an explicit escape hatch. Restore is still the MySQL/MariaDB client. Sales-channel rewrite path is unchanged. Co-authored-by: ROBJkE <ROBJkE@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replace compose-exec
mysqldump/mariadb-dumpindeploy/sync-runtime.sh(and thereforedeploy/backup-runtime.shsnapshots) withshopware-cli project dump.Production Shopware app images do not ship shopware-cli. Dumps run a one-shot container from the pinned official image, attached to the Compose network so hostname
mysqlresolves, with the shop root mounted for.env/.shopware-project.yml.Dump invocation
Pin:
ghcr.io/shopware/shopware-cli:0.18.4(SYNC_SHOPWARE_CLI_IMAGEto override)(
--passwordis passed as a separate argv and is not logged.)--skip-lock-tables--quickSYNC_DUMP_QUICK=0opts out)--cleanSYNC_DUMP_CLEAN=0opts out)--anonymizeSYNC_DUMP_ANONYMIZE=1opts in)--compression=gzip --output …/db.sql.gzPull/run failure fails closed with
docker pullguidance. No silent mysqldump fallback. Escape hatch:SYNC_DUMP_ENGINE=mysqldump.Unchanged
gzip -dcintomysql/mariadb(compose exec or--network hostclient).bin/console fyrst:sales-channel:rewrite-urls(PR feat: wire sync rewrite to fyrst:sales-channel:rewrite-urls #30).Docs / tests
sync-runtime.md,backup-runtime.md,deploy/README.md,sync.env.example,backup.env.example,post-install.txt, plustests/sync-dump.test.sh.