[Helper] Update backup_and_restore.sh (#4005)
Allocate a pseudo-tty for the mariabackup container process. This allows to redirect the complete output of the the backup script to a file.
This commit is contained in:
parent
df8cdf1e65
commit
f11660a5d8
@ -125,7 +125,7 @@ function backup() {
|
||||
docker run --name mailcow-backup --rm \
|
||||
--network $(docker network ls -qf name=${CMPS_PRJ}_mailcow-network) \
|
||||
-v $(docker volume ls -qf name=${CMPS_PRJ}_mysql-vol-1):/var/lib/mysql/:ro,z \
|
||||
--entrypoint= \
|
||||
-t --entrypoint= \
|
||||
--sysctl net.ipv6.conf.all.disable_ipv6=1 \
|
||||
-v ${BACKUP_LOCATION}/mailcow-${DATE}:/backup:z \
|
||||
${SQLIMAGE} /bin/sh -c "mariabackup --host mysql --user root --password ${DBROOT} --backup --rsync --target-dir=/backup_mariadb ; \
|
||||
|
Loading…
Reference in New Issue
Block a user