Ver código fonte

[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.
Sven Gottwald 4 anos atrás
pai
commit
f11660a5d8
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      helper-scripts/backup_and_restore.sh

+ 1 - 1
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 ; \