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"