Browse Source

extract backup with mariabackup

develop
Emmanuel Garette 2 months ago
parent
commit
44629b4587
1 changed files with 1 additions and 11 deletions
  1. 1
    11
      schedule/scripts/mariadb

+ 1
- 11
schedule/scripts/mariadb View File

@@ -12,16 +12,6 @@ OPTION="--lock-tables"
12 12
 rm -f $MYSQLSAVDIR/*.sql || true
13 13
 mkdir -p $MYSQLSAVDIR
14 14
 
15
-DATABASES=$(mysql --defaults-file=/etc/mysql/debian.cnf -e 'show databases' | grep -v '^Database$')
16
-for databasename in $DATABASES; do
17
-    case "$databasename" in
18
-        information_schema|performance_schema|bareos)
19
-            continue
20
-            ;;
21
-        *)
22
-            mysqldump --defaults-file=/etc/mysql/debian.cnf --databases $databasename --flush-privileges --create-options -Q -c $OPTION > $MYSQLSAVDIR/$databasename.sql
23
-            ;;
24
-    esac
25
-done
15
+mariabackup --defaults-file=/etc/mysql/debian.cnf --backup --target-dir=$MYSQLSAVDIR
26 16
 
27 17
 exit 0

Loading…
Cancel
Save