SlideShare a Scribd company logo
Introducing XtraBackup Manager
                      as told by Henrik Ingo, Percona Live UK 2012
Introducing Xtrabackup Manager
Introducing Xtrabackup Manager
Introducing Xtrabackup Manager
Introducing Xtrabackup Manager
Introducing Xtrabackup Manager
Introducing Xtrabackup Manager
Introducing Xtrabackup Manager
Introducing Xtrabackup Manager
[joe@bup01 /backup/udb] ls -laFh
-rw-rw-r-- 1 xbm xbm 20 Feb 01 2012 userdb-2012-02-01.gz

[joe@bup01 /backup/udb]
[joe@bup01 /backup/udb] zcat userdb-2012-02-
  01.gz
[joe@bup01 /backup/udb]
Introducing Xtrabackup Manager
#!/bin/bash
mysqldump -u web --password=j03r0cks! 
-h userdb.corp.com users | gzip > $BACKUPFILE
if [ $? -ne 0 ]; then
   backupalert.sh "ALERT: Failure while backing
up userdb!!"
else
   writelog.sh "User DB Backup Complete!"
fi
#!/bin/bash
mysqldump -u web --password=j03r0cks! 
-h userdb.corp.com users | gzip > $BACKUPFILE
if [ $? -ne 0 ]; then
   backupalert.sh "ALERT: Failure while backing
up userdb!!"
else
   writelog.sh "User DB Backup Complete!"
fi
Introducing Xtrabackup Manager
Introducing Xtrabackup Manager
Introducing Xtrabackup Manager
Introducing Xtrabackup Manager
Introducing Xtrabackup Manager
Introducing Xtrabackup Manager
Introducing Xtrabackup Manager
Introducing Xtrabackup Manager
A few little facts...

• XBM for short (cmd line tool)
• Written in PHP5 (Object Oriented)
• Leverages cron, netcat and ssh
• Works on Linux and Solaris
• GPLv2
So how does it
   work?...
QuickStart Guide

http://code.google.com/p/xtrabackup-manager/wiki/QuickStartGuide
What you’ll need...
• Server with plenty of storage
  space (management server)
  – MySQL 5.x+
  – PHP 5.1.6+ (CLI)

• mysql or root access to the servers
• XtraBackup 1.6.4+
Installing...
• Create UNIX user for XBM
• Create MySQL user for XBM +
  Schema
• Download latest tarball
• Extract to xbm user homedir
• Initialize the XBM schema:
   mysql xbm < ./sql/schema_init.sql
Setup SSH Trust...

XBM user must be able to SSH without
password:
     shell> ssh mysql@dbhost
Install
XtraBackup...
• Download & Install XtraBackup
  1.6.4+
• Install on both backup server and
  DB hosts
• Ensure XtraBackup is in $PATH too
Introducing Xtrabackup Manager
./xbm
./xbm backup list
./xbm volume add "mybackupdir" /home/xbm/backups/
./xbm volume list
./xbm host add localhost Just-testing
./xbm host list
./xbm backup add localhost monthlyBackup FULLONLY "30 03 01 * *" mybackupdir /var/lib/mysql
root root
./xbm backup list
./xbm backup run localhost monthlyBackup
./xbm snapshot list localhost
ls ../backups/
ls ../backups/localhost
ls ../backups/localhost/*
Introducing Xtrabackup Manager
Backup Strategies?

• When do I take full backups?
• When should I take incremental
  backups?
• How many snapshots do I keep?
• ... etc.
Backup Strategies!


• Full Only
• Continuous Incrementals
• Rotating Sets of Incrementals
Introducing Xtrabackup Manager
Introducing Xtrabackup Manager
Introducing Xtrabackup Manager
Introducing Xtrabackup Manager
Introducing Xtrabackup Manager
Introducing Xtrabackup Manager
How about time to
    restore?
Enter Materialized
    Backups...
Materialized
backups mean less
    waiting...
Introducing Xtrabackup Manager
Other neat features?...

• Throttling
• Email Alerts
• Rich logging
• Immediate Apply Logs
• Did I mention 100% open source
What is it missing?
What is missing?

• 1.0 release
• pitr (copy binlogs)
• compression
• encryption
• progress indicator
• GUI
Meh... Any alternatives?

• Zmanda Recovery Manager (ZRM)
• Used to be open source in 2006
• Still there, does support
  xtrabackup (and everything else)
• GUI, a bell and 3 whistles included!
Try it out!


Google Code:
   http://code.google.com/p/xtrabackup-
   manager
MySQL Soapbox - (My Blog)
   http://mysqlsoapbox.blogspot.com
Thank you!

More Related Content

PDF
Percona xtrabackup - MySQL Meetup @ Mumbai
PDF
Fast Incremental Backups with Percona Server and Percona XtraBackup / PLMCE 2014
PDF
Highly efficient backups with percona xtrabackup
PDF
Online MySQL Backups with Percona XtraBackup
PDF
MySQL Server Backup, Restoration, and Disaster Recovery Planning
ODP
PostgreSQL Replication in 10 Minutes - SCALE
PPT
Building tungsten-clusters-with-postgre sql-hot-standby-and-streaming-replica...
PPTX
vSphere vStorage: Troubleshooting Performance
Percona xtrabackup - MySQL Meetup @ Mumbai
Fast Incremental Backups with Percona Server and Percona XtraBackup / PLMCE 2014
Highly efficient backups with percona xtrabackup
Online MySQL Backups with Percona XtraBackup
MySQL Server Backup, Restoration, and Disaster Recovery Planning
PostgreSQL Replication in 10 Minutes - SCALE
Building tungsten-clusters-with-postgre sql-hot-standby-and-streaming-replica...
vSphere vStorage: Troubleshooting Performance

What's hot (20)

PPTX
Streaming Replication Made Easy in v9.3
PDF
MySQL Oslayer performace optimization
PPTX
PDF
MySQL Backup & Recovery
PPTX
Rit 2011 ats
DOCX
All types of backups and restore
PDF
MySQL Backup and Security Best Practices
PPT
Speeding Up The Snail
PPTX
Consistency between Engine and Binlog under Reduced Durability
PDF
제4회 한국IBM과 함께하는 난공불락 오픈소스 인프라 세미나-Asible
DOCX
Inno db datafiles backup and retore
PPTX
Performance all teh things
PDF
Uc2010 xtra backup-hot-backups-and-more
PDF
Postgres the hardway
PDF
Streaming Replication (Keynote @ PostgreSQL Conference 2009 Japan)
PDF
PGConf.ASIA 2019 Bali - Mission Critical Production High Availability Postgre...
PDF
Known basic of NFV Features
PPTX
Storage spaces direct webinar
PPTX
ProfessionalVMware BrownBag VCP5 Section3: Storage
PDF
Basics of Logical Replication,Streaming replication vs Logical Replication ,U...
Streaming Replication Made Easy in v9.3
MySQL Oslayer performace optimization
MySQL Backup & Recovery
Rit 2011 ats
All types of backups and restore
MySQL Backup and Security Best Practices
Speeding Up The Snail
Consistency between Engine and Binlog under Reduced Durability
제4회 한국IBM과 함께하는 난공불락 오픈소스 인프라 세미나-Asible
Inno db datafiles backup and retore
Performance all teh things
Uc2010 xtra backup-hot-backups-and-more
Postgres the hardway
Streaming Replication (Keynote @ PostgreSQL Conference 2009 Japan)
PGConf.ASIA 2019 Bali - Mission Critical Production High Availability Postgre...
Known basic of NFV Features
Storage spaces direct webinar
ProfessionalVMware BrownBag VCP5 Section3: Storage
Basics of Logical Replication,Streaming replication vs Logical Replication ,U...
Ad

Similar to Introducing Xtrabackup Manager (20)

PDF
MySQL Enterprise Backup (MEB)
PDF
Backing up Wikipedia Databases
PPTX
MYSQLDUMP & ZRM COMMUNITY (EN)
PDF
Become a MySQL DBA - slides: Deciding on a relevant backup solution
PDF
Zararfa SummerCamp 2012 - Performing fast backups in large scale environments...
PPT
My two cents about Mysql backup
PDF
Percona Xtrabackup - Highly Efficient Backups
PDF
OSDC 2012 | Taking hot backups with XtraBackup by Alexey Kopytov
PDF
Making Backups in Extreme Situations
PDF
A Backup Today Saves Tomorrow
PDF
MySQL and MariaDB Backups
PDF
MySQL Enterprise Backup & Oracle Secure Backup
PPTX
MySQL backup and restore performance
PDF
MySQL Utilities -- PyTexas 2015
PDF
Collaborate2011-XtraBackup Collaborate2011-XtraBackup
PDF
Lock, Stock and Backup: Data Guaranteed
PDF
MySQL for Oracle DBAs
PDF
Making MySQL Administration a Breeze - A Look Into a MySQL DBA's Toolchest
PDF
PLAM 2015 - Evolving Backups Strategy, Devploying pyxbackup
PDF
Backing Up the MySQL Database
MySQL Enterprise Backup (MEB)
Backing up Wikipedia Databases
MYSQLDUMP & ZRM COMMUNITY (EN)
Become a MySQL DBA - slides: Deciding on a relevant backup solution
Zararfa SummerCamp 2012 - Performing fast backups in large scale environments...
My two cents about Mysql backup
Percona Xtrabackup - Highly Efficient Backups
OSDC 2012 | Taking hot backups with XtraBackup by Alexey Kopytov
Making Backups in Extreme Situations
A Backup Today Saves Tomorrow
MySQL and MariaDB Backups
MySQL Enterprise Backup & Oracle Secure Backup
MySQL backup and restore performance
MySQL Utilities -- PyTexas 2015
Collaborate2011-XtraBackup Collaborate2011-XtraBackup
Lock, Stock and Backup: Data Guaranteed
MySQL for Oracle DBAs
Making MySQL Administration a Breeze - A Look Into a MySQL DBA's Toolchest
PLAM 2015 - Evolving Backups Strategy, Devploying pyxbackup
Backing Up the MySQL Database
Ad

More from Henrik Ingo (18)

PDF
ICPE25 Henrik Ingo Optimizing Hunter Nyrkiö slides (1).pdf
PDF
SPEC June 2025 - Using e-divisive means change detection in continuous benchm...
PDF
Introduction to new high performance storage engines in mongodb 3.0
PDF
Meteor - The next generation software stack
PDF
MongoDB for Oracle Experts - OUGF Harmony 2014
PDF
Building Your First MongoDB App
PDF
Analytics with MongoDB Aggregation Framework and Hadoop Connector
PDF
Whats new in mongoDB 2.4 at Copenhagen user group 2013-06-19
PDF
Failover or not to failover
PDF
Spatial functions in MySQL 5.6, MariaDB 5.5, PostGIS 2.0 and others
PDF
Using and Benchmarking Galera in different architectures (PLUK 2012)
PDF
Froscon 2012 how big corporations play the open source game
PDF
Introduction to Galera
PDF
Databases and the Cloud
PDF
Fixed in drizzle
PDF
Choosing a MySQL High Availability solution - Percona Live UK 2011
PDF
Froscon2011: How i learned to use sql and then learned not to use it
PDF
How to grow your open source project 10x and revenues 5x OSCON2011
ICPE25 Henrik Ingo Optimizing Hunter Nyrkiö slides (1).pdf
SPEC June 2025 - Using e-divisive means change detection in continuous benchm...
Introduction to new high performance storage engines in mongodb 3.0
Meteor - The next generation software stack
MongoDB for Oracle Experts - OUGF Harmony 2014
Building Your First MongoDB App
Analytics with MongoDB Aggregation Framework and Hadoop Connector
Whats new in mongoDB 2.4 at Copenhagen user group 2013-06-19
Failover or not to failover
Spatial functions in MySQL 5.6, MariaDB 5.5, PostGIS 2.0 and others
Using and Benchmarking Galera in different architectures (PLUK 2012)
Froscon 2012 how big corporations play the open source game
Introduction to Galera
Databases and the Cloud
Fixed in drizzle
Choosing a MySQL High Availability solution - Percona Live UK 2011
Froscon2011: How i learned to use sql and then learned not to use it
How to grow your open source project 10x and revenues 5x OSCON2011

Introducing Xtrabackup Manager