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"
|
|
|
|
|
2019-04-18 17:00:07 +02:00
|
|
|
rm -f $MYSQLSAVDIR/*.sql || true
|
2018-06-22 16:33:59 +02:00
|
|
|
mkdir -p $MYSQLSAVDIR
|
|
|
|
|
2019-06-07 14:47:57 +02:00
|
|
|
mariabackup --defaults-file=/etc/mysql/debian.cnf --backup --target-dir=$MYSQLSAVDIR
|
2019-04-18 17:00:07 +02:00
|
|
|
|
|
|
|
exit 0
|