Compare commits
6 Commits
33a7cf66c6
...
pkg/stagin
Author | SHA1 | Date | |
---|---|---|---|
168602802b | |||
ede38c4138 | |||
ff1d0a1324 | |||
45765a82e5 | |||
bc5078ff9b | |||
8b4e905824 |
@ -9,11 +9,9 @@ DESC="Exportation des bases MariaDB"
|
||||
MYSQLSAVDIR=$SAVDIR/sql
|
||||
OPTION="--lock-tables"
|
||||
|
||||
if [[ -d ${MYSQLSAVDIR} ]]
|
||||
then
|
||||
rm -rf ${MYSQLSAVDIR}
|
||||
mkdir -p ${MYSQLSAVDIR}
|
||||
fi
|
||||
rm -f $MYSQLSAVDIR/*.sql || true
|
||||
mkdir -p $MYSQLSAVDIR
|
||||
|
||||
mariabackup --defaults-file=/etc/mysql/debian.cnf --backup --target-dir=$MYSQLSAVDIR
|
||||
exit $?
|
||||
|
||||
exit 0
|
||||
|
Reference in New Issue
Block a user