From f11660a5d8209ff78b047196a39e99c9a31f3c1e Mon Sep 17 00:00:00 2001 From: Sven Gottwald <2502366+svengo@users.noreply.github.com> Date: Tue, 20 Apr 2021 21:24:31 +0200 Subject: [PATCH] [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. --- helper-scripts/backup_and_restore.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helper-scripts/backup_and_restore.sh b/helper-scripts/backup_and_restore.sh index 82002d7b..af15d40a 100755 --- a/helper-scripts/backup_and_restore.sh +++ b/helper-scripts/backup_and_restore.sh @@ -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 ; \