Database Snapshots & Restore
MultiDocker can dump and restore your project databases without you remembering the
right mysqldump / pg_dump incantation. The dialect is detected automatically from
the container image — MySQL/MariaDB, PostgreSQL, Redis or MongoDB.
Dumps are written under ~/.config/multi-docker/snapshots/<project>/.
Dump a single database
Section titled “Dump a single database”mdocker db dump auroramdocker db dump aurora --service db --out ~/backups/aurora.sqlThe dump is streamed out of the container per dialect:
| Dialect | Tool | Extension |
|---|---|---|
| MySQL / MariaDB | mysqldump |
.sql |
| PostgreSQL | pg_dump |
.sql |
| Redis | redis-cli --rdb |
.rdb |
| MongoDB | mongodump --archive |
.archive |
Snapshot every database
Section titled “Snapshot every database”snapshot dumps all database services of a project in one go — handy before a
migration or a risky change:
mdocker db snapshot auroramdocker db snapshots aurora # list existing snapshotsRestore
Section titled “Restore”Restore from an explicit file, or from the snapshot directory by timestamp:
mdocker db restore aurora ~/backups/aurora.sqlmdocker db restore-snapshot aurora # most recent snapshotmdocker db restore-snapshot aurora 20260101-120000Shopware note
Section titled “Shopware note”For Shopware profiles the database name, user and password are read from the shop
container’s DATABASE_URL (the db container only exposes a root password), so dumps
and restores automatically target the correct schema.
Related
Section titled “Related”Cookie settings
We only use statistics tools if you allow it. Necessary storage keeps this site working; everything else is off until you decide.
Stores your choice from this dialog in your browser (localStorage). No cookie, no transfer to third parties.
Google Analytics 4 via Google Tag Manager, to measure how the site is used. Loaded only after you allow it.