From aa362a9cea4f8d4940f78cd377889d1249dcf560 Mon Sep 17 00:00:00 2001 From: hpl Date: Tue, 8 Oct 2024 22:15:15 +0200 Subject: [PATCH] sauve les bdd avec mariadb11.4 --- bin/container.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/container.sh b/bin/container.sh index 0023233..6ead186 100755 --- a/bin/container.sh +++ b/bin/container.sh @@ -111,10 +111,13 @@ saveDB () { userPass=$3 dbName=$4 backName=$5 + #on utilise mysqldump (v=10.5) et mariadb-dump (v>=11.4) pour ĂȘtre certain d'avoir un dump. L'une des 2 lignes fera une erreur if [[ -n "${SIMU}" ]] ; then ${SIMU} "docker exec ${containerName} mysqldump --user=${userName} --password=${userPass} ${dbName} | gzip > $PATH_SAUVE${backName}.sql.gz" + ${SIMU} "docker exec ${containerName} mariadb-dump --user=${userName} --password=${userPass} ${dbName} | gzip > $PATH_SAUVE${backName}.sql.gz" else docker exec ${containerName} mysqldump --user=${userName} --password=${userPass} ${dbName} | gzip > $PATH_SAUVE${backName}.sql.gz + docker exec ${containerName} mariadb-dump --user=${userName} --password=${userPass} ${dbName} | gzip > $PATH_SAUVE${backName}.sql.gz fi }