system/scripts/sh/xtrabackup/run_full.sh
Georg f5c4d50f0c Init Percona XtraBackup
Signed-off-by: Georg <georg@lysergic.dev>
2021-08-30 21:03:30 +02:00

6 lines
248 B
Bash

#!/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