eole-mariadb/schedule/scripts/mariadb

18 lines
294 B
Plaintext
Raw Normal View History

#!/bin/bash
set -e
DESC="Exportation des bases MariaDB"
. /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
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