Init Percona XtraBackup
Signed-off-by: Georg <georg@lysergic.dev>
This commit is contained in:
parent
6800ad3e4b
commit
f5c4d50f0c
5
scripts/sh/xtrabackup/run_full.sh
Normal file
5
scripts/sh/xtrabackup/run_full.sh
Normal file
@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
DATE=$(date +'%d-%m-%Y')
|
||||
echo $DATE > /mnt/backup/xtrabackup/current_basedate
|
||||
/usr/bin/mkdir /mnt/backup/xtrabackup/full/$DATE
|
||||
/opt/xtrabackup/bin/xtrabackup --backup --target-dir=/mnt/backup/xtrabackup/full/$DATE |& nc -N 127.0.0.2 2424
|
7
scripts/sh/xtrabackup/run_incremental.sh
Normal file
7
scripts/sh/xtrabackup/run_incremental.sh
Normal file
@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
DATE=$(date +'%d-%m-%Y')
|
||||
BASEDATE=$(cat /mnt/backup/xtrabackup/current_basedate)
|
||||
echo "INCREMENTAL: $DATE"
|
||||
echo "BASE: $BASEDATE"
|
||||
/usr/bin/mkdir /mnt/backup/xtrabackup/incremental/$DATE
|
||||
/opt/xtrabackup/bin/xtrabackup --backup --target-dir=/mnt/backup/xtrabackup/incremental/$DATE --incremental-basedir=/mnt/backup/xtrabackup/full/$BASEDATE |& nc -N 127.0.0.2 2424
|
Loading…
Reference in New Issue
Block a user