Skip to content

Instantly share code, notes, and snippets.

View anilyadav's full-sized avatar

Anil Yadav anilyadav

  • Banglore
View GitHub Profile
rm $HOME/.mysql_history
ln -s /dev/null $HOME/.mysql_history
#!/bin/sh
#
# Script to prepare and restore full and incremental backups created with innobackupex-runner.
#
# This script is provided as-is; no liability can be accepted for use.
#
INNOBACKUPEX=innobackupex-1.5.1
INNOBACKUPEXFULL=/usr/bin/$INNOBACKUPEX
TMPFILE="/tmp/innobackupex-restore.$$.tmp"
#!/bin/sh
#
# Script to run innobackupex script (for all databases on server), check for success, and apply logs to backups.
#
# (C)2010 Owen Carter @ Mirabeau BV
# This script is provided as-is; no liability can be accepted for use.
# You are free to modify and reproduce so long as this attribution is preserved.
#
# contribution: 2011-12-07 Tom De Vylder - modified to work with PerconaDB