diff options
| author | Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org> | 2019-09-12 11:48:07 +0200 |
|---|---|---|
| committer | Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org> | 2019-09-12 14:14:08 +0200 |
| commit | 016c0f577c535def40dd32ddf41e6cb145a2f9b8 (patch) | |
| tree | 53f021ec3edd98a8ead5ade644cddca3c9c027b1 /docker/xtrabackup/backup.sh | |
| parent | 532af2efc8893cfd23f8d2beadd32a4e3463ae85 (diff) | |
| download | kolla-016c0f577c535def40dd32ddf41e6cb145a2f9b8.tar.gz kolla-016c0f577c535def40dd32ddf41e6cb145a2f9b8.zip | |
Drop Percona XtraBackup in favour of MariaDB Backup
XtraBackup started failing to install on Ubuntu and does not support
MariaDB 10.3 version.
Related-Bug: #1843043
Change-Id: I9cf62c8e03a02574d85e5349df1d23a51d4c99be
Diffstat (limited to 'docker/xtrabackup/backup.sh')
| -rwxr-xr-x | docker/xtrabackup/backup.sh | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/docker/xtrabackup/backup.sh b/docker/xtrabackup/backup.sh deleted file mode 100755 index f8dff8bd7..000000000 --- a/docker/xtrabackup/backup.sh +++ /dev/null @@ -1,49 +0,0 @@ -#!/usr/bin/env bash - -set -eu - -# Execute a full backup -backup_full() { - echo "Taking a full backup" - innobackupex --defaults-file=/etc/mysql/my.cnf \ - --no-timestamp \ - --stream=xbstream \ - --compress \ - --history=$(date +%d-%m-%Y) ./ > \ - $BACKUP_DIR/mysqlbackup-$(date +%d-%m-%Y-%s).qp.xbc.xbs -} - -# Execute an incremental backup -backup_incremental() { - echo "Taking an incremental backup" - innobackupex --defaults-file=/etc/mysql/my.cnf \ - --no-timestamp \ - --stream=xbstream \ - --compress \ - --incremental \ - --incremental-history-name=$(date +%d-%m-%Y) \ - --history=$(date +%d-%m-%Y) ./ > \ - $BACKUP_DIR/incremental-$(date +%H)-mysqlbackup-$(date +%d-%m-%Y-%s).qp.xbc.xbs -} - -BACKUP_DIR=/backup/ -cd $BACKUP_DIR - -if [ -n $BACKUP_TYPE ]; then - case $BACKUP_TYPE in - "full") - backup_full - ;; - "incremental") - backup_incremental - ;; - *) - echo "Only full or incremental options are supported." - exit 1 - ;; - esac -else - echo "You need to specify either full or incremental backup options." - exit 1 -fi - |
