Skip to content

Instantly share code, notes, and snippets.

@bryden
bryden / run-innobackupex.sh
Last active May 31, 2017 14:42 — forked from jmfederico/run-xtrabackup.sh
Script to create full/incremental backups with innobackupex script.
#!/bin/bash
USER="root"
PASS="root"
BACKDIR="mysql-bak"
BASEBACKDIR="$BACKDIR/base"
INCRBACKDIR="$BACKDIR/incr"
FULLBACKUPLIFE=3600
START=`date +%s`
TMPFILE="$$.sql"