Update docker.yml
This commit is contained in:
parent
3d6c3dd163
commit
65175112e0
@ -170,8 +170,8 @@
|
||||
docker exec -ti $i /usr/bin/test -x /usr/bin/mysqldump && DBDUMPCMD=/usr/bin/mysqldump
|
||||
if [ -z "$DBDUMPCMD" ]
|
||||
then
|
||||
g_echo_error "No dbdumpcmd found in container $i! No backup created!"
|
||||
continue
|
||||
g_echo_error "No dbdumpcmd found in container $i! No backup created!"
|
||||
continue
|
||||
fi
|
||||
g_echo "Sichere Datenbank $MARIADB_DATABASE DB aus $i";
|
||||
docker exec $i $DBDUMPCMD --no-tablespaces -u $MARIADB_USR -p$MARIADB_PWD $MARIADB_DATABASE 2>${g_tmp}/dberr | gzip > $BACKUPDIR/$i-$MARIADB_DATABASE-$TIMESTAMP.sql.gz || g_echo_error "DB-Backup von $MARIADB_DATABASE war nicht erfolgreich $(cat ${g_tmp}/dberr)"
|
||||
|
Loading…
Reference in New Issue
Block a user