Tools, scripts - and what nots.
Shell PHP
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
mysql-fabric Added README and cleanup help Apr 29, 2014
README Additional README information Jul 25, 2013 Fixed snap to dump master status. Feb 23, 2012
process-xdebug-trace.php Sysbench script for OLTP Oct 5, 2012 Updated command when calling to reflect parameters Oct 26, 2013

README - Wrapper for Percona Xtrabackup

- Percona XtraBackup
- MySQL/compatible server (to backup)
- MySQL/compatible server (to store backup metadata)

APPLY_LOG	When set to 1, a copy of your backups will be maintained inside WORK_DIR/bkps 
		where they will be prepared with "--apply-log --redo-only". This process
		is applied for the full backup set starting with the most recent full backup 
		and incremental backups if any. The resulting folder is prefixed with 'P_'.

STOR_CMP	Whether to compress your backups, although XtraBackup supports its own compression
		the script only compresses using good ol' tarball for now.

COPY_BINLOGS	Whether to maintain a copy of your binary logs as well. The number of binary logs
		maintained depends on the oldest backup you have and the newest such that
		you should be able to prepare your oldest backup and apply your binary logs up
		to now. The bianry logs are stored inside STOR_DIR/bnlg

WORK_DIR 	If you have enabled APPLY_LOG and/or STOR_CMP, certain backup copies will be
		kept here.

STOR_DIR	Where your actual raw (optionally compressed) backups will be stored.

MY 		Must be set to the command line needed to access the metadata server 
		(i.e. "mysql -uuser -ppass -hhost schema-name")
		The following table must exist in the schema specified in the MY variable: 

CREATE TABLE backups (
  id int(10) unsigned NOT NULL auto_increment,
  started_at timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  ends_at timestamp NOT NULL default '0000-00-00 00:00:00',
  size varchar(15) default NULL,
  path varchar(120) default NULL,
  type enum('full','incr') NOT NULL default 'full',
  incrbase timestamp NOT NULL default '0000-00-00 00:00:00',
  weekno tinyint(3) unsigned NOT NULL default '0',
  baseid int(10) unsigned NOT NULL default '0',
  PRIMARY KEY  (`id`)


Create a full backup with:

bash -t full

Create an incremental backup with:

bash -t incr

In case of a previous error and lock file was not removed, you can add -f to force the backup
and remove the lock file afterwards. Note that you have to be sure you have already
investigated the cause of the previous failure.

bash -t full -f