Compare commits

..

2 Commits

Author SHA1 Message Date
8d878d2416 Merge branch '2.7.0/unstable' into dist/eole/2.7.0/unstable 2021-09-28 11:55:20 +02:00
03ce27c7f2 Fix schedule backup script 2020-11-19 10:16:05 +01:00

View File

@ -9,9 +9,11 @@ DESC="Exportation des bases MariaDB"
MYSQLSAVDIR=$SAVDIR/sql
OPTION="--lock-tables"
rm -f $MYSQLSAVDIR/*.sql || true
mkdir -p $MYSQLSAVDIR
if [[ -d ${MYSQLSAVDIR} ]]
then
rm -rf ${MYSQLSAVDIR}
mkdir -p ${MYSQLSAVDIR}
fi
mariabackup --defaults-file=/etc/mysql/debian.cnf --backup --target-dir=$MYSQLSAVDIR
exit 0
exit $?