mirror of
https://github.com/offen/docker-volume-backup.git
synced 2025-01-22 04:30:24 +01:00
MariaDB image stopped providing mysqldump shim, use plain name
This commit is contained in:
parent
49b8d2f8d8
commit
4799795f0a
@ -338,7 +338,7 @@ volumes:
|
|||||||
data:
|
data:
|
||||||
```
|
```
|
||||||
|
|
||||||
## Using mysqldump to prepare the backup
|
## Using mariadb-dump/mysqldump to prepare the backup
|
||||||
|
|
||||||
```yml
|
```yml
|
||||||
version: '3'
|
version: '3'
|
||||||
@ -347,7 +347,7 @@ services:
|
|||||||
database:
|
database:
|
||||||
image: mariadb:latest
|
image: mariadb:latest
|
||||||
labels:
|
labels:
|
||||||
- docker-volume-backup.archive-pre=/bin/sh -c 'mysqldump -psecret --all-databases > /tmp/dumps/dump.sql'
|
- docker-volume-backup.archive-pre=/bin/sh -c 'mariadb-dump -psecret --all-databases > /tmp/dumps/dump.sql'
|
||||||
volumes:
|
volumes:
|
||||||
- data:/tmp/dumps
|
- data:/tmp/dumps
|
||||||
backup:
|
backup:
|
||||||
|
Loading…
Reference in New Issue
Block a user