forked from Percona-QA/percona-qa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbackup.sh
executable file
·13 lines (7 loc) · 1.17 KB
/
backup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
/usr/local/xtrabackup/bin/xtrabackup --defaults-file=/etc/my.cnf --backup --keyring-file-data=/var/lib/mysql-keyring/keyring --server-id=0 --datadir=/var/lib/mysql/ --target-dir=/home/backup_dir/full/ --user=root --password=Baku12345# --no-version-check
sleep 10
/usr/local/xtrabackup/bin/xtrabackup --defaults-file=/etc/my.cnf --backup --target-dir=/home/backup_dir/inc/inc1 --incremental-basedir=/home/backup_dir/full --datadir=/var/lib/mysql/ --user=root --password=Baku12345# --no-version-check --keyring-file-data=/var/lib/mysql-keyring/keyring --server-id=0
sleep 10
/usr/local/xtrabackup/bin/xtrabackup --defaults-file=/etc/my.cnf --backup --target-dir=/home/backup_dir/inc/inc2 --incremental-basedir=/home/backup_dir/inc/inc1 --datadir=/var/lib/mysql/ --user=root --password=Baku12345# --no-version-check --keyring-file-data=/var/lib/mysql-keyring/keyring --server-id=0
sleep 10
/usr/local/xtrabackup/bin/xtrabackup --defaults-file=/etc/my.cnf --backup --target-dir=/home/backup_dir/inc/inc3 --incremental-basedir=/home/backup_dir/inc/inc2 --datadir=/var/lib/mysql/ --user=root --password=Baku12345# --no-version-check --keyring-file-data=/var/lib/mysql-keyring/keyring --server-id=0