2018-06-22 16:33:59 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2019-02-15 11:04:05 +01:00
|
|
|
DESC="Exportation des bases MariaDB"
|
2018-06-22 16:33:59 +02:00
|
|
|
|
|
|
|
. /usr/share/eole/schedule/config.sh
|
|
|
|
|
|
|
|
MYSQLSAVDIR=$SAVDIR/sql
|
|
|
|
OPTION="--lock-tables"
|
|
|
|
|
2020-11-19 10:15:32 +01:00
|
|
|
if [[ -d ${MYSQLSAVDIR} ]]
|
|
|
|
then
|
|
|
|
rm -rf ${MYSQLSAVDIR}
|
|
|
|
mkdir -p ${MYSQLSAVDIR}
|
|
|
|
fi
|
2018-06-22 16:33:59 +02:00
|
|
|
|
2019-06-07 14:47:57 +02:00
|
|
|
mariabackup --defaults-file=/etc/mysql/debian.cnf --backup --target-dir=$MYSQLSAVDIR
|
2020-11-19 10:15:32 +01:00
|
|
|
exit $?
|