summaryrefslogtreecommitdiffstats
path: root/scripts/sh/xtrabackup/run_full.sh
blob: dd3d1bd8767ca6208b1edf28535b9370c1c316ce (plain)
1
2
3
4
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