From fc5ccc8c7b426ffa21f3a7aeef418213197fbd45 Mon Sep 17 00:00:00 2001 From: leo <426742@gmail.com> Date: Wed, 21 Aug 2024 18:44:53 +0500 Subject: [PATCH] replace mysqldump --- mariadb.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mariadb.sh b/mariadb.sh index d1e0bfd..a9a5d6a 100644 --- a/mariadb.sh +++ b/mariadb.sh @@ -45,8 +45,8 @@ if [ -f 'dump_'"$MYSQL_DB"'.sql' ]; then fi DB_BACKUP_FILENAME=$MYSQL_DB'_'$CURRENT_DATETIME'.tar.gz' -echo 'Exec mysqldump...' -docker exec -t $DOCKER_SERVICE_NAME mysqldump -u $MYSQL_USER -p$MARIADB_ROOT_PASSWORD $MYSQL_DB > 'dump_'"$MYSQL_DB"'.sql' +echo 'Exec mariadb-dump...' +docker exec -t $DOCKER_SERVICE_NAME mariadb-dump -u $MYSQL_USER -p$MARIADB_ROOT_PASSWORD $MYSQL_DB > 'dump_'"$MYSQL_DB"'.sql' echo 'Pack to tar.gz...' tar -cf - 'dump_'"$MYSQL_DB"'.sql' | gzip -9 > "$DB_BACKUP_FILENAME"