forked from Percona-QA/percona-qa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprepare_backup.sh
executable file
·13 lines (7 loc) · 1.04 KB
/
prepare_backup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
/usr/local/xtrabackup/bin/xtrabackup --defaults-file=/home/backup_dir/full/backup-my.cnf --prepare --apply-log-only --target-dir=/home/backup_dir/full --keyring-file-data=/var/lib/mysql-keyring/keyring --reencrypt-for-server-id=5
sleep 10
/usr/local/xtrabackup/bin/xtrabackup --defaults-file=/home/backup_dir/full/backup-my.cnf --prepare --apply-log-only --target-dir=/home/backup_dir/full --incremental-dir=/home/backup_dir/inc/inc1 --keyring-file-data=/var/lib/mysql-keyring/keyring --reencrypt-for-server-id=5
sleep 10
/usr/local/xtrabackup/bin/xtrabackup --defaults-file=/home/backup_dir/full/backup-my.cnf --prepare --apply-log-only --target-dir=/home/backup_dir/full --incremental-dir=/home/backup_dir/inc/inc2 --keyring-file-data=/var/lib/mysql-keyring/keyring --reencrypt-for-server-id=5
sleep 10
/usr/local/xtrabackup/bin/xtrabackup --defaults-file=/home/backup_dir/full/backup-my.cnf --prepare --target-dir=/home/backup_dir/full --incremental-dir=/home/backup_dir/inc/inc3 --keyring-file-data=/var/lib/mysql-keyring/keyring --reencrypt-for-server-id=5