SlideShare a Scribd company logo
Online Backups with
Percona Live Amsterdam - October 2016
1 / 42
Kenny Gryp
@gryp
MySQL Practice Manager
2 / 42
Agenda
What is Percona XtraBackup
Backup Process
Restore Process
Incremental
Compression, Streaming, Encryption
Cloud Backups - α
Percona Server Specific Features
3 / 42
4 / 42
What is
What is
Backups for:
5 / 42
What is
Backups for:
6 / 42
Online (Non Blocking) InnoDB Backups
Physical Datafiles Copied
What is
https://www.percona.com/software/mysql-database/percona-xtrabackup
7 / 42
Online (Non Blocking) InnoDB Backups
Physical Datafiles Copied
Less Impact on Production
Faster Restore Time Than Logical Backups
What is
https://www.percona.com/software/mysql-database/percona-xtrabackup
8 / 42
Online (Non Blocking) InnoDB Backups
Physical Datafiles Copied
Less Impact on Production
Faster Restore Time Than Logical Backups
What is
https://www.percona.com/software/mysql-database/percona-xtrabackup
Open Source
Blocking Support MyISAM...
Incremental/Delta
Compression/Encryption
Cloud Backup
9 / 42
10 / 42
(Data) Backup Process
(Data) Backup Process - 1. Backup
Backup .ibdfiles while in use
/var/lib/mysql/ibdata1
/var/lib/mysql/imdb/aka_name.ibd
/var/lib/mysql/imdb/aka_title.ibd
...
11 / 42
(Data) Backup Process - 1. Backup
Backup .ibdfiles while in use
/var/lib/mysql/ibdata1
/var/lib/mysql/imdb/aka_name.ibd
/var/lib/mysql/imdb/aka_title.ibd
...
track changes through trx logs
/var/lib/mysql/ib_log le0
/var/lib/mysql/ib_log le1
12 / 42
(Data) Backup Process - 2. Prepare
Apply changes from trx logs onto backupped .ibdfiles.
13 / 42
(Data) Backup Process - 1. Backup
#xtrabackup--backup--target-dir=/data/backups/
16100122:16:49ConnectingtoMySQLserverhost:localhost,user:root,password:not
Usingserverversion5.7.14-8-log
xtrabackupversion2.4.4basedonMySQLserver5.7.13Linux(x86_64)(revisionid
xtrabackup:usesposix_fadvise().
...
InnoDB:Numberofpools:1
16100122:16:49>>logscannedupto(5147619414)
xtrabackup:Generatingalistoftablespaces
InnoDB:AllocatedtablespaceID2formysql/plugin,oldmaximumwas0
16100122:16:50[01]Copying./ibdata1to/data/backups/ibdata1
16100122:16:50[01]Copying./mysql/plugin.ibdto/data/backups/mysql/plugin.ibd
16100122:16:50[01]Copying./mysql/servers.ibdto/data/backups/mysql/servers.ibd
16100122:16:50[01]Copying./mysql/help_topic.ibdto/data/backups/mysql/help_topic.i
...
16100122:17:13[01]Copying./imdb/users.ibdto/data/backups/imdb/users.ibd
16100122:17:13>>logscannedupto(5147619414)
16100122:17:14ExecutingFLUSHNO_WRITE_TO_BINLOGTABLES...
16100122:17:14ExecutingFLUSHTABLESWITHREADLOCK...
14 / 42
(Data) Backup Process - 1. Backup (2)
16100122:17:14Startingtobackupnon-InnoDBtablesand les
16100122:17:14[01]Copying./mysql/db.optto/data/backups/mysql/db.opt
16100122:17:14[01]Copying./mysql/db.frmto/data/backups/mysql/db.frm
16100122:17:14[01]Copying./mysql/db.MYIto/data/backups/mysql/db.MYI
16100122:17:14[01]Copying./mysql/db.MYDto/data/backups/mysql/db.MYD
16100122:17:17[01]Copying./imdb/users.frmto/data/backups/imdb/users.frm
16100122:17:17Finishedbackingupnon-InnoDBtablesand les
16100122:17:17ExecutingFLUSHNO_WRITE_TO_BINLOGENGINELOGS...
xtrabackup:Thelatestcheckpoint(forincremental):'5147619454'
xtrabackup:Stoppinglogcopyingthread.
.16100122:17:17>>logscannedupto(5147619463)
16100122:17:17ExecutingUNLOCKTABLES
16100122:17:17Alltablesunlocked
16100122:17:17[00]Copyingib_buffer_poolto/data/backups/ib_buffer_pool
16100122:17:17[00] ...done
16100122:17:17Backupcreatedindirectory'/data/backups/'
16100122:17:17[00]Writingbackup-my.cnf
16100122:17:17[00] ...done
16100122:17:17[00]Writingxtrabackup_info
16100122:17:17[00] ...done
xtrabackup:Transactionlogoflsn(5147619405)to(5147619463)wascopied.
16100122:17:18completedOK!
15 / 42
(Data) Backup Process - 2. Prepare (1)
#xtrabackup--prepare--target-dir=/data/backups/
xtrabackupversion2.4.4basedonMySQLserver5.7.13Linux(x86_64)(revisionid:df58
xtrabackup:cdto/data/backups
xtrabackup:Thistargetseemstobenotpreparedyet.
...
xtrabackup:StartingInnoDBinstanceforrecovery.
xtrabackup:Using104857600bytesforbufferpool(setby--use-memoryparameter)
...
InnoDB:Logscanprogressedpastthecheckpointlsn5147619405
InnoDB:Doingrecovery:scanneduptologsequencenumber5147619463(0%)
InnoDB:Doingrecovery:scanneduptologsequencenumber5147619463(0%)
InnoDB:Databasewasnotshutdownnormally!
InnoDB:Startingcrashrecovery.
InnoDB:xtrabackup:LastMySQLbinlog leposition333,
lenameperconaserver-bin.000007
...
InnoDB:96redorollbacksegment(s)found.1redorollbacksegment(s)areactive.
InnoDB:32non-redorollbacksegment(s)areactive.
InnoDB:Waitingforpurgetostart
InnoDB:5.7.13started;logsequencenumber5147619463
InnoDB:xtrabackup:LastMySQLbinlog leposition333, lenameperconaserver-bin.00
xtrabackup:startingshutdownwithinnodb_fast_shutdown=1
InnoDB:FTSoptimizethreadexiting.
InnoDB:Startingshutdown...
InnoDB:Shutdowncompleted;logsequencenumber5147619482
16 / 42
(Data) Backup Process - 2. Prepare (2)
...
InnoDB:Settinglog le./ib_log le101sizeto64MB
InnoDB:Settinglog le./ib_log le1sizeto64MB
InnoDB:Renaminglog le./ib_log le101to./ib_log le0
InnoDB:Newlog lescreated,LSN=5147619482
InnoDB:Highestsupported leformatisBarracuda.
InnoDB:Logscanprogressedpastthecheckpointlsn5147619852
InnoDB:Doingrecovery:scanneduptologsequencenumber5147619861(0%)
InnoDB:Doingrecovery:scanneduptologsequencenumber5147619861(0%)
InnoDB:Databasewasnotshutdownnormally!
InnoDB:Startingcrashrecovery.
InnoDB:xtrabackup:LastMySQLbinlog leposition333, lenameperconaserver-bin
...
InnoDB:96redorollbacksegment(s)found.1redorollbacksegment(s)areactive.
InnoDB:32non-redorollbacksegment(s)areactive.
InnoDB:Waitingforpurgetostart
InnoDB:5.7.13started;logsequencenumber5147619861
xtrabackup:startingshutdownwithinnodb_fast_shutdown=1
InnoDB:FTSoptimizethreadexiting.
InnoDB:Startingshutdown...
InnoDB:Shutdowncompleted;logsequencenumber5147619880
16100122:30:05completedOK!
17 / 42
18 / 42
Restore Process
Restore Process
After preparation, the backup directory ==data directory
19 / 42
Restore Process
After preparation, the backup directory ==data directory
#cp-R/data/backup//var/lib/mysql
#chown-Rmysql:mysql/var/lib/mysql
#systemctlstartmysqld
20 / 42
21 / 42
Incremental Backups
Incremental Backups
22 / 42
Incremental Backups
Only Copy InnoDB Pages That Changed
(still copies all non InnoDB Tables)
23 / 42
Pro:
Smaller backup size
Faster To Backup
Incremental & Delta
Incremental Backups
Only Copy InnoDB Pages That Changed
(still copies all non InnoDB Tables)
24 / 42
Pro:
Smaller backup size
Faster To Backup
Incremental & Delta
Con:
Slower to restore than full
On , all data is read
Incremental Backups
Only Copy InnoDB Pages That Changed
(still copies all non InnoDB Tables)
25 / 42
Incremental Backups - Process
26 / 42
Incremental Backups - Process
Take Incremental:
#xtrabackup--backup
--target-dir=/data/backups/inc/tuesday/
--incremental-basedir=/data/backups/full/sunday/
27 / 42
Incremental Backups - Process
Take Incremental:
#xtrabackup--backup
--target-dir=/data/backups/inc/tuesday/
--incremental-basedir=/data/backups/full/sunday/
Prepare Full
#xtrabackup--prepare
--apply-log-only
--target-dir=/data/backups/mysql/
28 / 42
Incremental Backups - Process
Take Incremental:
#xtrabackup--backup
--target-dir=/data/backups/inc/tuesday/
--incremental-basedir=/data/backups/full/sunday/
Prepare Full
#xtrabackup--prepare
--apply-log-only
--target-dir=/data/backups/mysql/
Apply Incremental
#xtrabackup--prepare--apply-log-only
--target-dir=/data/backups/full/sunday
--incremental-dir=/data/backups/inc/tuesday/
29 / 42
30 / 42
Compression, Streaming, Encryption
Compression
Compress using qpress
#xtrabackup--backup--target-dir=/data/backups/
--compress--compress-threads=2
Decompress (before prepare)
#xtrabackup--decompress--target-dir=/data/backups/
31 / 42
Streaming
#xtrabackup--backup
--compress
--stream=xbstream> le.xb
32 / 42
Streaming
#xtrabackup--backup
--compress
--stream=xbstream> le.xb
Over Network
#xtrabackup--backup
--compress
--stream=xbstream./
|sshuser@otherhost"xbstream-x"
33 / 42
Encryption
# xtrabackup--backup--target-dir=/data/backups
--encrypt=AES256
--encrypt-key="GCHFLrDFVx6UAsRb88uLVbAVWbK+Yzfs"
--encrypt-threads=2
34 / 42
35 / 42
Cloud Backups - α
Cloud Backups - α
Stream to Cloud directly
Swift
α
36 / 42
Cloud Backups - α
Put
#xtrabackup--backup--stream=xbstream--target-dir=/data/backups|
xbcloudput--storage=Swift
--swift-container=test--swift-user=test:tester
--swift-auth-url=http://192.168.8.80:8080/
--swift-key=testing
full_backup
37 / 42
Cloud Backups - α
Put
#xtrabackup--backup--stream=xbstream--target-dir=/data/backups|
xbcloudput--storage=Swift
--swift-container=test--swift-user=test:tester
--swift-auth-url=http://192.168.8.80:8080/
--swift-key=testing
full_backup
Get
#xbcloudget--storage=Swift
--swift-container=test--swift-user=test:tester
--swift-auth-url=http://192.168.8.80:8080/
--swift-key=testing
full_backup|xbstream-xv-C/tmp/downloaded_full
#xtrabackup--prepare--target-dir=/tmp/downloaded_full
#xtrabackup--copy-back--target-dir=/tmp/downloaded_full
38 / 42
39 / 42
Features
Backup Locks
Implements LOCKTABLESFORBACKUPto
Avoid FLUSHTABLESWITHREADLOCK, used for:
Non-InnoDB Tables (mysqlschema... )
Binary Log Position
Blocks DML to non-InnoDB
Blocks DDL
Allows Reads/Writes to InnoDB tables during
40 / 42
Change Page Tracking - Incremental Backups
Incremental backup does no longer require reading all pages to determine if a page
changed since the last full backup
How:
Percona Server tracks pages changed in InnoDB Tablespaces
Incremental backup reads changed page file, only reads changed pages
Why:
Less load on database server (a lot less Disk IO)
41 / 42
Thank you !
Questions ?
42 / 42
Ad

More Related Content

What's hot (20)

ProxySQL Tutorial - PLAM 2016
ProxySQL Tutorial - PLAM 2016ProxySQL Tutorial - PLAM 2016
ProxySQL Tutorial - PLAM 2016
Derek Downey
 
MySQL InnoDB Cluster - Group Replication
MySQL InnoDB Cluster - Group ReplicationMySQL InnoDB Cluster - Group Replication
MySQL InnoDB Cluster - Group Replication
Frederic Descamps
 
Handling Schema Changes Using pt-online-schema change.
Handling Schema Changes Using pt-online-schema change.Handling Schema Changes Using pt-online-schema change.
Handling Schema Changes Using pt-online-schema change.
Mydbops
 
PostgreSQL replication
PostgreSQL replicationPostgreSQL replication
PostgreSQL replication
NTT DATA OSS Professional Services
 
How to set up orchestrator to manage thousands of MySQL servers
How to set up orchestrator to manage thousands of MySQL serversHow to set up orchestrator to manage thousands of MySQL servers
How to set up orchestrator to manage thousands of MySQL servers
Simon J Mudd
 
What is new in MariaDB 10.6?
What is new in MariaDB 10.6?What is new in MariaDB 10.6?
What is new in MariaDB 10.6?
Mydbops
 
Redo log improvements MYSQL 8.0
Redo log improvements MYSQL 8.0Redo log improvements MYSQL 8.0
Redo log improvements MYSQL 8.0
Mydbops
 
MySQL 상태 메시지 분석 및 활용
MySQL 상태 메시지 분석 및 활용MySQL 상태 메시지 분석 및 활용
MySQL 상태 메시지 분석 및 활용
I Goo Lee
 
MySQL/MariaDB Proxy Software Test
MySQL/MariaDB Proxy Software TestMySQL/MariaDB Proxy Software Test
MySQL/MariaDB Proxy Software Test
I Goo Lee
 
SSD Deployment Strategies for MySQL
SSD Deployment Strategies for MySQLSSD Deployment Strategies for MySQL
SSD Deployment Strategies for MySQL
Yoshinori Matsunobu
 
MySQL Administrator 2021 - 네오클로바
MySQL Administrator 2021 - 네오클로바MySQL Administrator 2021 - 네오클로바
MySQL Administrator 2021 - 네오클로바
NeoClova
 
binary log と 2PC と Group Commit
binary log と 2PC と Group Commitbinary log と 2PC と Group Commit
binary log と 2PC と Group Commit
Takanori Sejima
 
ProxySQL - High Performance and HA Proxy for MySQL
ProxySQL - High Performance and HA Proxy for MySQLProxySQL - High Performance and HA Proxy for MySQL
ProxySQL - High Performance and HA Proxy for MySQL
René Cannaò
 
10 Problems with your RMAN backup script
10 Problems with your RMAN backup script10 Problems with your RMAN backup script
10 Problems with your RMAN backup script
Yury Velikanov
 
MariaDB 10.5 binary install (바이너리 설치)
MariaDB 10.5 binary install (바이너리 설치)MariaDB 10.5 binary install (바이너리 설치)
MariaDB 10.5 binary install (바이너리 설치)
NeoClova
 
MariaDB Server Performance Tuning & Optimization
MariaDB Server Performance Tuning & OptimizationMariaDB Server Performance Tuning & Optimization
MariaDB Server Performance Tuning & Optimization
MariaDB plc
 
Under the Hood of a Shard-per-Core Database Architecture
Under the Hood of a Shard-per-Core Database ArchitectureUnder the Hood of a Shard-per-Core Database Architecture
Under the Hood of a Shard-per-Core Database Architecture
ScyllaDB
 
MySQL Scalability and Reliability for Replicated Environment
MySQL Scalability and Reliability for Replicated EnvironmentMySQL Scalability and Reliability for Replicated Environment
MySQL Scalability and Reliability for Replicated Environment
Jean-François Gagné
 
MariaDB MaxScale
MariaDB MaxScaleMariaDB MaxScale
MariaDB MaxScale
MariaDB plc
 
Intro ProxySQL
Intro ProxySQLIntro ProxySQL
Intro ProxySQL
I Goo Lee
 
ProxySQL Tutorial - PLAM 2016
ProxySQL Tutorial - PLAM 2016ProxySQL Tutorial - PLAM 2016
ProxySQL Tutorial - PLAM 2016
Derek Downey
 
MySQL InnoDB Cluster - Group Replication
MySQL InnoDB Cluster - Group ReplicationMySQL InnoDB Cluster - Group Replication
MySQL InnoDB Cluster - Group Replication
Frederic Descamps
 
Handling Schema Changes Using pt-online-schema change.
Handling Schema Changes Using pt-online-schema change.Handling Schema Changes Using pt-online-schema change.
Handling Schema Changes Using pt-online-schema change.
Mydbops
 
How to set up orchestrator to manage thousands of MySQL servers
How to set up orchestrator to manage thousands of MySQL serversHow to set up orchestrator to manage thousands of MySQL servers
How to set up orchestrator to manage thousands of MySQL servers
Simon J Mudd
 
What is new in MariaDB 10.6?
What is new in MariaDB 10.6?What is new in MariaDB 10.6?
What is new in MariaDB 10.6?
Mydbops
 
Redo log improvements MYSQL 8.0
Redo log improvements MYSQL 8.0Redo log improvements MYSQL 8.0
Redo log improvements MYSQL 8.0
Mydbops
 
MySQL 상태 메시지 분석 및 활용
MySQL 상태 메시지 분석 및 활용MySQL 상태 메시지 분석 및 활용
MySQL 상태 메시지 분석 및 활용
I Goo Lee
 
MySQL/MariaDB Proxy Software Test
MySQL/MariaDB Proxy Software TestMySQL/MariaDB Proxy Software Test
MySQL/MariaDB Proxy Software Test
I Goo Lee
 
SSD Deployment Strategies for MySQL
SSD Deployment Strategies for MySQLSSD Deployment Strategies for MySQL
SSD Deployment Strategies for MySQL
Yoshinori Matsunobu
 
MySQL Administrator 2021 - 네오클로바
MySQL Administrator 2021 - 네오클로바MySQL Administrator 2021 - 네오클로바
MySQL Administrator 2021 - 네오클로바
NeoClova
 
binary log と 2PC と Group Commit
binary log と 2PC と Group Commitbinary log と 2PC と Group Commit
binary log と 2PC と Group Commit
Takanori Sejima
 
ProxySQL - High Performance and HA Proxy for MySQL
ProxySQL - High Performance and HA Proxy for MySQLProxySQL - High Performance and HA Proxy for MySQL
ProxySQL - High Performance and HA Proxy for MySQL
René Cannaò
 
10 Problems with your RMAN backup script
10 Problems with your RMAN backup script10 Problems with your RMAN backup script
10 Problems with your RMAN backup script
Yury Velikanov
 
MariaDB 10.5 binary install (바이너리 설치)
MariaDB 10.5 binary install (바이너리 설치)MariaDB 10.5 binary install (바이너리 설치)
MariaDB 10.5 binary install (바이너리 설치)
NeoClova
 
MariaDB Server Performance Tuning & Optimization
MariaDB Server Performance Tuning & OptimizationMariaDB Server Performance Tuning & Optimization
MariaDB Server Performance Tuning & Optimization
MariaDB plc
 
Under the Hood of a Shard-per-Core Database Architecture
Under the Hood of a Shard-per-Core Database ArchitectureUnder the Hood of a Shard-per-Core Database Architecture
Under the Hood of a Shard-per-Core Database Architecture
ScyllaDB
 
MySQL Scalability and Reliability for Replicated Environment
MySQL Scalability and Reliability for Replicated EnvironmentMySQL Scalability and Reliability for Replicated Environment
MySQL Scalability and Reliability for Replicated Environment
Jean-François Gagné
 
MariaDB MaxScale
MariaDB MaxScaleMariaDB MaxScale
MariaDB MaxScale
MariaDB plc
 
Intro ProxySQL
Intro ProxySQLIntro ProxySQL
Intro ProxySQL
I Goo Lee
 

Viewers also liked (20)

Why MySQL High Availability Matters
Why MySQL High Availability MattersWhy MySQL High Availability Matters
Why MySQL High Availability Matters
Matt Lord
 
MySQL High Availability Solutions
MySQL High Availability SolutionsMySQL High Availability Solutions
MySQL High Availability Solutions
Lenz Grimmer
 
Requirements the Last Bottleneck
Requirements the Last BottleneckRequirements the Last Bottleneck
Requirements the Last Bottleneck
Karwin Software Solutions LLC
 
MySQL InnoDB 源码实现分析(一)
MySQL InnoDB 源码实现分析(一)MySQL InnoDB 源码实现分析(一)
MySQL InnoDB 源码实现分析(一)
frogd
 
Load Data Fast!
Load Data Fast!Load Data Fast!
Load Data Fast!
Karwin Software Solutions LLC
 
MySQL Backup and Recovery Essentials
MySQL Backup and Recovery EssentialsMySQL Backup and Recovery Essentials
MySQL Backup and Recovery Essentials
Ronald Bradford
 
Redis介绍
Redis介绍Redis介绍
Redis介绍
zhaolinjnu
 
Why MySQL Replication Fails, and How to Get it Back
Why MySQL Replication Fails, and How to Get it BackWhy MySQL Replication Fails, and How to Get it Back
Why MySQL Replication Fails, and How to Get it Back
Sveta Smirnova
 
A New Architecture for Group Replication in Data Grid
A New Architecture for Group Replication in Data GridA New Architecture for Group Replication in Data Grid
A New Architecture for Group Replication in Data Grid
Editor IJCATR
 
MySQL Storage Engines - which do you use? TokuDB? MyRocks? InnoDB?
MySQL Storage Engines - which do you use? TokuDB? MyRocks? InnoDB?MySQL Storage Engines - which do you use? TokuDB? MyRocks? InnoDB?
MySQL Storage Engines - which do you use? TokuDB? MyRocks? InnoDB?
Sveta Smirnova
 
Java MySQL Connector & Connection Pool Features & Optimization
Java MySQL Connector & Connection Pool Features & OptimizationJava MySQL Connector & Connection Pool Features & Optimization
Java MySQL Connector & Connection Pool Features & Optimization
Kenny Gryp
 
Advanced Percona XtraDB Cluster in a nutshell... la suite
Advanced Percona XtraDB Cluster in a nutshell... la suiteAdvanced Percona XtraDB Cluster in a nutshell... la suite
Advanced Percona XtraDB Cluster in a nutshell... la suite
Kenny Gryp
 
Мониторинг и отладка MySQL: максимум информации при минимальных потерях
Мониторинг и отладка MySQL: максимум информации при минимальных потеряхМониторинг и отладка MySQL: максимум информации при минимальных потерях
Мониторинг и отладка MySQL: максимум информации при минимальных потерях
Sveta Smirnova
 
MySQL Group Replication
MySQL Group ReplicationMySQL Group Replication
MySQL Group Replication
Manish Kumar
 
Percona XtraDB Cluster vs Galera Cluster vs MySQL Group Replication
Percona XtraDB Cluster vs Galera Cluster vs MySQL Group ReplicationPercona XtraDB Cluster vs Galera Cluster vs MySQL Group Replication
Percona XtraDB Cluster vs Galera Cluster vs MySQL Group Replication
Kenny Gryp
 
Everything You Need to Know About MySQL Group Replication
Everything You Need to Know About MySQL Group ReplicationEverything You Need to Know About MySQL Group Replication
Everything You Need to Know About MySQL Group Replication
Nuno Carvalho
 
MySQL Group Replication - HandsOn Tutorial
MySQL Group Replication - HandsOn TutorialMySQL Group Replication - HandsOn Tutorial
MySQL Group Replication - HandsOn Tutorial
Kenny Gryp
 
The nightmare of locking, blocking and isolation levels!
The nightmare of locking, blocking and isolation levels!The nightmare of locking, blocking and isolation levels!
The nightmare of locking, blocking and isolation levels!
Boris Hristov
 
Inno db internals innodb file formats and source code structure
Inno db internals innodb file formats and source code structureInno db internals innodb file formats and source code structure
Inno db internals innodb file formats and source code structure
zhaolinjnu
 
MySQL High Availability with Group Replication
MySQL High Availability with Group ReplicationMySQL High Availability with Group Replication
MySQL High Availability with Group Replication
Nuno Carvalho
 
Why MySQL High Availability Matters
Why MySQL High Availability MattersWhy MySQL High Availability Matters
Why MySQL High Availability Matters
Matt Lord
 
MySQL High Availability Solutions
MySQL High Availability SolutionsMySQL High Availability Solutions
MySQL High Availability Solutions
Lenz Grimmer
 
MySQL InnoDB 源码实现分析(一)
MySQL InnoDB 源码实现分析(一)MySQL InnoDB 源码实现分析(一)
MySQL InnoDB 源码实现分析(一)
frogd
 
MySQL Backup and Recovery Essentials
MySQL Backup and Recovery EssentialsMySQL Backup and Recovery Essentials
MySQL Backup and Recovery Essentials
Ronald Bradford
 
Why MySQL Replication Fails, and How to Get it Back
Why MySQL Replication Fails, and How to Get it BackWhy MySQL Replication Fails, and How to Get it Back
Why MySQL Replication Fails, and How to Get it Back
Sveta Smirnova
 
A New Architecture for Group Replication in Data Grid
A New Architecture for Group Replication in Data GridA New Architecture for Group Replication in Data Grid
A New Architecture for Group Replication in Data Grid
Editor IJCATR
 
MySQL Storage Engines - which do you use? TokuDB? MyRocks? InnoDB?
MySQL Storage Engines - which do you use? TokuDB? MyRocks? InnoDB?MySQL Storage Engines - which do you use? TokuDB? MyRocks? InnoDB?
MySQL Storage Engines - which do you use? TokuDB? MyRocks? InnoDB?
Sveta Smirnova
 
Java MySQL Connector & Connection Pool Features & Optimization
Java MySQL Connector & Connection Pool Features & OptimizationJava MySQL Connector & Connection Pool Features & Optimization
Java MySQL Connector & Connection Pool Features & Optimization
Kenny Gryp
 
Advanced Percona XtraDB Cluster in a nutshell... la suite
Advanced Percona XtraDB Cluster in a nutshell... la suiteAdvanced Percona XtraDB Cluster in a nutshell... la suite
Advanced Percona XtraDB Cluster in a nutshell... la suite
Kenny Gryp
 
Мониторинг и отладка MySQL: максимум информации при минимальных потерях
Мониторинг и отладка MySQL: максимум информации при минимальных потеряхМониторинг и отладка MySQL: максимум информации при минимальных потерях
Мониторинг и отладка MySQL: максимум информации при минимальных потерях
Sveta Smirnova
 
MySQL Group Replication
MySQL Group ReplicationMySQL Group Replication
MySQL Group Replication
Manish Kumar
 
Percona XtraDB Cluster vs Galera Cluster vs MySQL Group Replication
Percona XtraDB Cluster vs Galera Cluster vs MySQL Group ReplicationPercona XtraDB Cluster vs Galera Cluster vs MySQL Group Replication
Percona XtraDB Cluster vs Galera Cluster vs MySQL Group Replication
Kenny Gryp
 
Everything You Need to Know About MySQL Group Replication
Everything You Need to Know About MySQL Group ReplicationEverything You Need to Know About MySQL Group Replication
Everything You Need to Know About MySQL Group Replication
Nuno Carvalho
 
MySQL Group Replication - HandsOn Tutorial
MySQL Group Replication - HandsOn TutorialMySQL Group Replication - HandsOn Tutorial
MySQL Group Replication - HandsOn Tutorial
Kenny Gryp
 
The nightmare of locking, blocking and isolation levels!
The nightmare of locking, blocking and isolation levels!The nightmare of locking, blocking and isolation levels!
The nightmare of locking, blocking and isolation levels!
Boris Hristov
 
Inno db internals innodb file formats and source code structure
Inno db internals innodb file formats and source code structureInno db internals innodb file formats and source code structure
Inno db internals innodb file formats and source code structure
zhaolinjnu
 
MySQL High Availability with Group Replication
MySQL High Availability with Group ReplicationMySQL High Availability with Group Replication
MySQL High Availability with Group Replication
Nuno Carvalho
 
Ad

Similar to Online MySQL Backups with Percona XtraBackup (20)

ZDLRA in Action
ZDLRA in ActionZDLRA in Action
ZDLRA in Action
Daniele Massimi
 
Zararfa SummerCamp 2012 - Performing fast backups in large scale environments...
Zararfa SummerCamp 2012 - Performing fast backups in large scale environments...Zararfa SummerCamp 2012 - Performing fast backups in large scale environments...
Zararfa SummerCamp 2012 - Performing fast backups in large scale environments...
Zarafa
 
MySQL for Oracle DBAs
MySQL for Oracle DBAsMySQL for Oracle DBAs
MySQL for Oracle DBAs
Mark Leith
 
Lock, Stock and Backup: Data Guaranteed
Lock, Stock and Backup: Data GuaranteedLock, Stock and Backup: Data Guaranteed
Lock, Stock and Backup: Data Guaranteed
Jervin Real
 
Uc2010 xtra backup-hot-backups-and-more
Uc2010 xtra backup-hot-backups-and-moreUc2010 xtra backup-hot-backups-and-more
Uc2010 xtra backup-hot-backups-and-more
Arvids Godjuks
 
6048618 cloning-procedure-of-r12-single-tier
6048618 cloning-procedure-of-r12-single-tier6048618 cloning-procedure-of-r12-single-tier
6048618 cloning-procedure-of-r12-single-tier
balaji29
 
OSDC 2012 | Taking hot backups with XtraBackup by Alexey Kopytov
OSDC 2012 | Taking hot backups with XtraBackup by Alexey KopytovOSDC 2012 | Taking hot backups with XtraBackup by Alexey Kopytov
OSDC 2012 | Taking hot backups with XtraBackup by Alexey Kopytov
NETWAYS
 
2007-05-23 Cecchet_PGCon2007.ppt
2007-05-23 Cecchet_PGCon2007.ppt2007-05-23 Cecchet_PGCon2007.ppt
2007-05-23 Cecchet_PGCon2007.ppt
nadirpervez2
 
MySQL backup and restore performance
MySQL backup and restore performanceMySQL backup and restore performance
MySQL backup and restore performance
Vinicius M Grippa
 
Arcserve Portfolio Technical Overview
Arcserve Portfolio Technical OverviewArcserve Portfolio Technical Overview
Arcserve Portfolio Technical Overview
Gina Tragos
 
A Step-By-Step Disaster Recovery Blueprint & Best Practices for Your NetBacku...
A Step-By-Step Disaster Recovery Blueprint & Best Practices for Your NetBacku...A Step-By-Step Disaster Recovery Blueprint & Best Practices for Your NetBacku...
A Step-By-Step Disaster Recovery Blueprint & Best Practices for Your NetBacku...
Symantec
 
CA ARCserve Solution Overview
CA ARCserve Solution OverviewCA ARCserve Solution Overview
CA ARCserve Solution Overview
Motty Ben Atia
 
Introduction to MariaDB
Introduction to MariaDBIntroduction to MariaDB
Introduction to MariaDB
JongJin Lee
 
Business Continuty Solution
Business Continuty SolutionBusiness Continuty Solution
Business Continuty Solution
Barada Mohanty
 
Be a better developer with Docker (revision 3)
Be a better developer with Docker (revision 3)Be a better developer with Docker (revision 3)
Be a better developer with Docker (revision 3)
Nicola Paolucci
 
Source Code Management systems
Source Code Management systemsSource Code Management systems
Source Code Management systems
xSawyer
 
OOW15 - Online Patching with Oracle E-Business Suite 12.2
OOW15 - Online Patching with Oracle E-Business Suite 12.2OOW15 - Online Patching with Oracle E-Business Suite 12.2
OOW15 - Online Patching with Oracle E-Business Suite 12.2
vasuballa
 
Corporate Laptop Backup and Recovery
Corporate Laptop Backup and RecoveryCorporate Laptop Backup and Recovery
Corporate Laptop Backup and Recovery
Jaspreet Singh
 
Webinar NETGEAR - Storage ReadyNAS, le novità
Webinar NETGEAR - Storage ReadyNAS, le novitàWebinar NETGEAR - Storage ReadyNAS, le novità
Webinar NETGEAR - Storage ReadyNAS, le novità
Netgear Italia
 
Db As Behaving Badly... Worst Practices For Database Administrators Rod Colledge
Db As Behaving Badly... Worst Practices For Database Administrators Rod ColledgeDb As Behaving Badly... Worst Practices For Database Administrators Rod Colledge
Db As Behaving Badly... Worst Practices For Database Administrators Rod Colledge
sqlserver.co.il
 
Zararfa SummerCamp 2012 - Performing fast backups in large scale environments...
Zararfa SummerCamp 2012 - Performing fast backups in large scale environments...Zararfa SummerCamp 2012 - Performing fast backups in large scale environments...
Zararfa SummerCamp 2012 - Performing fast backups in large scale environments...
Zarafa
 
MySQL for Oracle DBAs
MySQL for Oracle DBAsMySQL for Oracle DBAs
MySQL for Oracle DBAs
Mark Leith
 
Lock, Stock and Backup: Data Guaranteed
Lock, Stock and Backup: Data GuaranteedLock, Stock and Backup: Data Guaranteed
Lock, Stock and Backup: Data Guaranteed
Jervin Real
 
Uc2010 xtra backup-hot-backups-and-more
Uc2010 xtra backup-hot-backups-and-moreUc2010 xtra backup-hot-backups-and-more
Uc2010 xtra backup-hot-backups-and-more
Arvids Godjuks
 
6048618 cloning-procedure-of-r12-single-tier
6048618 cloning-procedure-of-r12-single-tier6048618 cloning-procedure-of-r12-single-tier
6048618 cloning-procedure-of-r12-single-tier
balaji29
 
OSDC 2012 | Taking hot backups with XtraBackup by Alexey Kopytov
OSDC 2012 | Taking hot backups with XtraBackup by Alexey KopytovOSDC 2012 | Taking hot backups with XtraBackup by Alexey Kopytov
OSDC 2012 | Taking hot backups with XtraBackup by Alexey Kopytov
NETWAYS
 
2007-05-23 Cecchet_PGCon2007.ppt
2007-05-23 Cecchet_PGCon2007.ppt2007-05-23 Cecchet_PGCon2007.ppt
2007-05-23 Cecchet_PGCon2007.ppt
nadirpervez2
 
MySQL backup and restore performance
MySQL backup and restore performanceMySQL backup and restore performance
MySQL backup and restore performance
Vinicius M Grippa
 
Arcserve Portfolio Technical Overview
Arcserve Portfolio Technical OverviewArcserve Portfolio Technical Overview
Arcserve Portfolio Technical Overview
Gina Tragos
 
A Step-By-Step Disaster Recovery Blueprint & Best Practices for Your NetBacku...
A Step-By-Step Disaster Recovery Blueprint & Best Practices for Your NetBacku...A Step-By-Step Disaster Recovery Blueprint & Best Practices for Your NetBacku...
A Step-By-Step Disaster Recovery Blueprint & Best Practices for Your NetBacku...
Symantec
 
CA ARCserve Solution Overview
CA ARCserve Solution OverviewCA ARCserve Solution Overview
CA ARCserve Solution Overview
Motty Ben Atia
 
Introduction to MariaDB
Introduction to MariaDBIntroduction to MariaDB
Introduction to MariaDB
JongJin Lee
 
Business Continuty Solution
Business Continuty SolutionBusiness Continuty Solution
Business Continuty Solution
Barada Mohanty
 
Be a better developer with Docker (revision 3)
Be a better developer with Docker (revision 3)Be a better developer with Docker (revision 3)
Be a better developer with Docker (revision 3)
Nicola Paolucci
 
Source Code Management systems
Source Code Management systemsSource Code Management systems
Source Code Management systems
xSawyer
 
OOW15 - Online Patching with Oracle E-Business Suite 12.2
OOW15 - Online Patching with Oracle E-Business Suite 12.2OOW15 - Online Patching with Oracle E-Business Suite 12.2
OOW15 - Online Patching with Oracle E-Business Suite 12.2
vasuballa
 
Corporate Laptop Backup and Recovery
Corporate Laptop Backup and RecoveryCorporate Laptop Backup and Recovery
Corporate Laptop Backup and Recovery
Jaspreet Singh
 
Webinar NETGEAR - Storage ReadyNAS, le novità
Webinar NETGEAR - Storage ReadyNAS, le novitàWebinar NETGEAR - Storage ReadyNAS, le novità
Webinar NETGEAR - Storage ReadyNAS, le novità
Netgear Italia
 
Db As Behaving Badly... Worst Practices For Database Administrators Rod Colledge
Db As Behaving Badly... Worst Practices For Database Administrators Rod ColledgeDb As Behaving Badly... Worst Practices For Database Administrators Rod Colledge
Db As Behaving Badly... Worst Practices For Database Administrators Rod Colledge
sqlserver.co.il
 
Ad

More from Kenny Gryp (13)

MySQL Database Architectures - 2022-08
MySQL Database Architectures - 2022-08MySQL Database Architectures - 2022-08
MySQL Database Architectures - 2022-08
Kenny Gryp
 
MySQL Database Architectures - MySQL InnoDB ClusterSet 2021-11
MySQL Database Architectures - MySQL InnoDB ClusterSet 2021-11MySQL Database Architectures - MySQL InnoDB ClusterSet 2021-11
MySQL Database Architectures - MySQL InnoDB ClusterSet 2021-11
Kenny Gryp
 
MySQL Operator for Kubernetes
MySQL Operator for KubernetesMySQL Operator for Kubernetes
MySQL Operator for Kubernetes
Kenny Gryp
 
MySQL Database Architectures - 2020-10
MySQL Database Architectures -  2020-10MySQL Database Architectures -  2020-10
MySQL Database Architectures - 2020-10
Kenny Gryp
 
MySQL InnoDB Cluster / ReplicaSet - Tutorial
MySQL InnoDB Cluster / ReplicaSet - TutorialMySQL InnoDB Cluster / ReplicaSet - Tutorial
MySQL InnoDB Cluster / ReplicaSet - Tutorial
Kenny Gryp
 
MySQL Connectors 8.0.19 & DNS SRV
MySQL Connectors 8.0.19 & DNS SRVMySQL Connectors 8.0.19 & DNS SRV
MySQL Connectors 8.0.19 & DNS SRV
Kenny Gryp
 
MySQL Database Architectures - InnoDB ReplicaSet & Cluster
MySQL Database Architectures - InnoDB ReplicaSet & ClusterMySQL Database Architectures - InnoDB ReplicaSet & Cluster
MySQL Database Architectures - InnoDB ReplicaSet & Cluster
Kenny Gryp
 
MySQL InnoDB Cluster - New Features in 8.0 Releases - Best Practices
MySQL InnoDB Cluster - New Features in 8.0 Releases - Best PracticesMySQL InnoDB Cluster - New Features in 8.0 Releases - Best Practices
MySQL InnoDB Cluster - New Features in 8.0 Releases - Best Practices
Kenny Gryp
 
MySQL Group Replication - Ready For Production? (2018-04)
MySQL Group Replication - Ready For Production? (2018-04)MySQL Group Replication - Ready For Production? (2018-04)
MySQL Group Replication - Ready For Production? (2018-04)
Kenny Gryp
 
Reducing Risk When Upgrading MySQL
Reducing Risk When Upgrading MySQLReducing Risk When Upgrading MySQL
Reducing Risk When Upgrading MySQL
Kenny Gryp
 
MySQL Group Replication
MySQL Group ReplicationMySQL Group Replication
MySQL Group Replication
Kenny Gryp
 
Multi Source Replication With MySQL 5.7 @ Verisure
Multi Source Replication With MySQL 5.7 @ VerisureMulti Source Replication With MySQL 5.7 @ Verisure
Multi Source Replication With MySQL 5.7 @ Verisure
Kenny Gryp
 
Percona XtraDB Cluster
Percona XtraDB ClusterPercona XtraDB Cluster
Percona XtraDB Cluster
Kenny Gryp
 
MySQL Database Architectures - 2022-08
MySQL Database Architectures - 2022-08MySQL Database Architectures - 2022-08
MySQL Database Architectures - 2022-08
Kenny Gryp
 
MySQL Database Architectures - MySQL InnoDB ClusterSet 2021-11
MySQL Database Architectures - MySQL InnoDB ClusterSet 2021-11MySQL Database Architectures - MySQL InnoDB ClusterSet 2021-11
MySQL Database Architectures - MySQL InnoDB ClusterSet 2021-11
Kenny Gryp
 
MySQL Operator for Kubernetes
MySQL Operator for KubernetesMySQL Operator for Kubernetes
MySQL Operator for Kubernetes
Kenny Gryp
 
MySQL Database Architectures - 2020-10
MySQL Database Architectures -  2020-10MySQL Database Architectures -  2020-10
MySQL Database Architectures - 2020-10
Kenny Gryp
 
MySQL InnoDB Cluster / ReplicaSet - Tutorial
MySQL InnoDB Cluster / ReplicaSet - TutorialMySQL InnoDB Cluster / ReplicaSet - Tutorial
MySQL InnoDB Cluster / ReplicaSet - Tutorial
Kenny Gryp
 
MySQL Connectors 8.0.19 & DNS SRV
MySQL Connectors 8.0.19 & DNS SRVMySQL Connectors 8.0.19 & DNS SRV
MySQL Connectors 8.0.19 & DNS SRV
Kenny Gryp
 
MySQL Database Architectures - InnoDB ReplicaSet & Cluster
MySQL Database Architectures - InnoDB ReplicaSet & ClusterMySQL Database Architectures - InnoDB ReplicaSet & Cluster
MySQL Database Architectures - InnoDB ReplicaSet & Cluster
Kenny Gryp
 
MySQL InnoDB Cluster - New Features in 8.0 Releases - Best Practices
MySQL InnoDB Cluster - New Features in 8.0 Releases - Best PracticesMySQL InnoDB Cluster - New Features in 8.0 Releases - Best Practices
MySQL InnoDB Cluster - New Features in 8.0 Releases - Best Practices
Kenny Gryp
 
MySQL Group Replication - Ready For Production? (2018-04)
MySQL Group Replication - Ready For Production? (2018-04)MySQL Group Replication - Ready For Production? (2018-04)
MySQL Group Replication - Ready For Production? (2018-04)
Kenny Gryp
 
Reducing Risk When Upgrading MySQL
Reducing Risk When Upgrading MySQLReducing Risk When Upgrading MySQL
Reducing Risk When Upgrading MySQL
Kenny Gryp
 
MySQL Group Replication
MySQL Group ReplicationMySQL Group Replication
MySQL Group Replication
Kenny Gryp
 
Multi Source Replication With MySQL 5.7 @ Verisure
Multi Source Replication With MySQL 5.7 @ VerisureMulti Source Replication With MySQL 5.7 @ Verisure
Multi Source Replication With MySQL 5.7 @ Verisure
Kenny Gryp
 
Percona XtraDB Cluster
Percona XtraDB ClusterPercona XtraDB Cluster
Percona XtraDB Cluster
Kenny Gryp
 

Recently uploaded (20)

FPET_Implementation_2_MA to 360 Engage Direct.pptx
FPET_Implementation_2_MA to 360 Engage Direct.pptxFPET_Implementation_2_MA to 360 Engage Direct.pptx
FPET_Implementation_2_MA to 360 Engage Direct.pptx
ssuser4ef83d
 
Day 1 - Lab 1 Reconnaissance Scanning with NMAP, Vulnerability Assessment wit...
Day 1 - Lab 1 Reconnaissance Scanning with NMAP, Vulnerability Assessment wit...Day 1 - Lab 1 Reconnaissance Scanning with NMAP, Vulnerability Assessment wit...
Day 1 - Lab 1 Reconnaissance Scanning with NMAP, Vulnerability Assessment wit...
Abodahab
 
Thingyan is now a global treasure! See how people around the world are search...
Thingyan is now a global treasure! See how people around the world are search...Thingyan is now a global treasure! See how people around the world are search...
Thingyan is now a global treasure! See how people around the world are search...
Pixellion
 
Ppt. Nikhil.pptxnshwuudgcudisisshvehsjks
Ppt. Nikhil.pptxnshwuudgcudisisshvehsjksPpt. Nikhil.pptxnshwuudgcudisisshvehsjks
Ppt. Nikhil.pptxnshwuudgcudisisshvehsjks
panchariyasahil
 
Medical Dataset including visualizations
Medical Dataset including visualizationsMedical Dataset including visualizations
Medical Dataset including visualizations
vishrut8750588758
 
Data Analytics Overview and its applications
Data Analytics Overview and its applicationsData Analytics Overview and its applications
Data Analytics Overview and its applications
JanmejayaMishra7
 
md-presentHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHation.pptx
md-presentHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHation.pptxmd-presentHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHation.pptx
md-presentHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHation.pptx
fatimalazaar2004
 
04302025_CCC TUG_DataVista: The Design Story
04302025_CCC TUG_DataVista: The Design Story04302025_CCC TUG_DataVista: The Design Story
04302025_CCC TUG_DataVista: The Design Story
ccctableauusergroup
 
Data Science Courses in India iim skills
Data Science Courses in India iim skillsData Science Courses in India iim skills
Data Science Courses in India iim skills
dharnathakur29
 
Just-In-Timeasdfffffffghhhhhhhhhhj Systems.ppt
Just-In-Timeasdfffffffghhhhhhhhhhj Systems.pptJust-In-Timeasdfffffffghhhhhhhhhhj Systems.ppt
Just-In-Timeasdfffffffghhhhhhhhhhj Systems.ppt
ssuser5f8f49
 
Molecular methods diagnostic and monitoring of infection - Repaired.pptx
Molecular methods diagnostic and monitoring of infection  -  Repaired.pptxMolecular methods diagnostic and monitoring of infection  -  Repaired.pptx
Molecular methods diagnostic and monitoring of infection - Repaired.pptx
7tzn7x5kky
 
chapter 4 Variability statistical research .pptx
chapter 4 Variability statistical research .pptxchapter 4 Variability statistical research .pptx
chapter 4 Variability statistical research .pptx
justinebandajbn
 
VKS-Python Basics for Beginners and advance.pptx
VKS-Python Basics for Beginners and advance.pptxVKS-Python Basics for Beginners and advance.pptx
VKS-Python Basics for Beginners and advance.pptx
Vinod Srivastava
 
Minions Want to eat presentacion muy linda
Minions Want to eat presentacion muy lindaMinions Want to eat presentacion muy linda
Minions Want to eat presentacion muy linda
CarlaAndradesSoler1
 
Developing Security Orchestration, Automation, and Response Applications
Developing Security Orchestration, Automation, and Response ApplicationsDeveloping Security Orchestration, Automation, and Response Applications
Developing Security Orchestration, Automation, and Response Applications
VICTOR MAESTRE RAMIREZ
 
Flip flop presenation-Presented By Mubahir khan.pptx
Flip flop presenation-Presented By Mubahir khan.pptxFlip flop presenation-Presented By Mubahir khan.pptx
Flip flop presenation-Presented By Mubahir khan.pptx
mubashirkhan45461
 
Safety Innovation in Mt. Vernon A Westchester County Model for New Rochelle a...
Safety Innovation in Mt. Vernon A Westchester County Model for New Rochelle a...Safety Innovation in Mt. Vernon A Westchester County Model for New Rochelle a...
Safety Innovation in Mt. Vernon A Westchester County Model for New Rochelle a...
James Francis Paradigm Asset Management
 
Classification_in_Machinee_Learning.pptx
Classification_in_Machinee_Learning.pptxClassification_in_Machinee_Learning.pptx
Classification_in_Machinee_Learning.pptx
wencyjorda88
 
03 Daniel 2-notes.ppt seminario escatologia
03 Daniel 2-notes.ppt seminario escatologia03 Daniel 2-notes.ppt seminario escatologia
03 Daniel 2-notes.ppt seminario escatologia
Alexander Romero Arosquipa
 
VKS-Python-FIe Handling text CSV Binary.pptx
VKS-Python-FIe Handling text CSV Binary.pptxVKS-Python-FIe Handling text CSV Binary.pptx
VKS-Python-FIe Handling text CSV Binary.pptx
Vinod Srivastava
 
FPET_Implementation_2_MA to 360 Engage Direct.pptx
FPET_Implementation_2_MA to 360 Engage Direct.pptxFPET_Implementation_2_MA to 360 Engage Direct.pptx
FPET_Implementation_2_MA to 360 Engage Direct.pptx
ssuser4ef83d
 
Day 1 - Lab 1 Reconnaissance Scanning with NMAP, Vulnerability Assessment wit...
Day 1 - Lab 1 Reconnaissance Scanning with NMAP, Vulnerability Assessment wit...Day 1 - Lab 1 Reconnaissance Scanning with NMAP, Vulnerability Assessment wit...
Day 1 - Lab 1 Reconnaissance Scanning with NMAP, Vulnerability Assessment wit...
Abodahab
 
Thingyan is now a global treasure! See how people around the world are search...
Thingyan is now a global treasure! See how people around the world are search...Thingyan is now a global treasure! See how people around the world are search...
Thingyan is now a global treasure! See how people around the world are search...
Pixellion
 
Ppt. Nikhil.pptxnshwuudgcudisisshvehsjks
Ppt. Nikhil.pptxnshwuudgcudisisshvehsjksPpt. Nikhil.pptxnshwuudgcudisisshvehsjks
Ppt. Nikhil.pptxnshwuudgcudisisshvehsjks
panchariyasahil
 
Medical Dataset including visualizations
Medical Dataset including visualizationsMedical Dataset including visualizations
Medical Dataset including visualizations
vishrut8750588758
 
Data Analytics Overview and its applications
Data Analytics Overview and its applicationsData Analytics Overview and its applications
Data Analytics Overview and its applications
JanmejayaMishra7
 
md-presentHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHation.pptx
md-presentHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHation.pptxmd-presentHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHation.pptx
md-presentHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHation.pptx
fatimalazaar2004
 
04302025_CCC TUG_DataVista: The Design Story
04302025_CCC TUG_DataVista: The Design Story04302025_CCC TUG_DataVista: The Design Story
04302025_CCC TUG_DataVista: The Design Story
ccctableauusergroup
 
Data Science Courses in India iim skills
Data Science Courses in India iim skillsData Science Courses in India iim skills
Data Science Courses in India iim skills
dharnathakur29
 
Just-In-Timeasdfffffffghhhhhhhhhhj Systems.ppt
Just-In-Timeasdfffffffghhhhhhhhhhj Systems.pptJust-In-Timeasdfffffffghhhhhhhhhhj Systems.ppt
Just-In-Timeasdfffffffghhhhhhhhhhj Systems.ppt
ssuser5f8f49
 
Molecular methods diagnostic and monitoring of infection - Repaired.pptx
Molecular methods diagnostic and monitoring of infection  -  Repaired.pptxMolecular methods diagnostic and monitoring of infection  -  Repaired.pptx
Molecular methods diagnostic and monitoring of infection - Repaired.pptx
7tzn7x5kky
 
chapter 4 Variability statistical research .pptx
chapter 4 Variability statistical research .pptxchapter 4 Variability statistical research .pptx
chapter 4 Variability statistical research .pptx
justinebandajbn
 
VKS-Python Basics for Beginners and advance.pptx
VKS-Python Basics for Beginners and advance.pptxVKS-Python Basics for Beginners and advance.pptx
VKS-Python Basics for Beginners and advance.pptx
Vinod Srivastava
 
Minions Want to eat presentacion muy linda
Minions Want to eat presentacion muy lindaMinions Want to eat presentacion muy linda
Minions Want to eat presentacion muy linda
CarlaAndradesSoler1
 
Developing Security Orchestration, Automation, and Response Applications
Developing Security Orchestration, Automation, and Response ApplicationsDeveloping Security Orchestration, Automation, and Response Applications
Developing Security Orchestration, Automation, and Response Applications
VICTOR MAESTRE RAMIREZ
 
Flip flop presenation-Presented By Mubahir khan.pptx
Flip flop presenation-Presented By Mubahir khan.pptxFlip flop presenation-Presented By Mubahir khan.pptx
Flip flop presenation-Presented By Mubahir khan.pptx
mubashirkhan45461
 
Safety Innovation in Mt. Vernon A Westchester County Model for New Rochelle a...
Safety Innovation in Mt. Vernon A Westchester County Model for New Rochelle a...Safety Innovation in Mt. Vernon A Westchester County Model for New Rochelle a...
Safety Innovation in Mt. Vernon A Westchester County Model for New Rochelle a...
James Francis Paradigm Asset Management
 
Classification_in_Machinee_Learning.pptx
Classification_in_Machinee_Learning.pptxClassification_in_Machinee_Learning.pptx
Classification_in_Machinee_Learning.pptx
wencyjorda88
 
VKS-Python-FIe Handling text CSV Binary.pptx
VKS-Python-FIe Handling text CSV Binary.pptxVKS-Python-FIe Handling text CSV Binary.pptx
VKS-Python-FIe Handling text CSV Binary.pptx
Vinod Srivastava
 

Online MySQL Backups with Percona XtraBackup

  • 1. Online Backups with Percona Live Amsterdam - October 2016 1 / 42
  • 3. Agenda What is Percona XtraBackup Backup Process Restore Process Incremental Compression, Streaming, Encryption Cloud Backups - α Percona Server Specific Features 3 / 42
  • 7. Online (Non Blocking) InnoDB Backups Physical Datafiles Copied What is https://www.percona.com/software/mysql-database/percona-xtrabackup 7 / 42
  • 8. Online (Non Blocking) InnoDB Backups Physical Datafiles Copied Less Impact on Production Faster Restore Time Than Logical Backups What is https://www.percona.com/software/mysql-database/percona-xtrabackup 8 / 42
  • 9. Online (Non Blocking) InnoDB Backups Physical Datafiles Copied Less Impact on Production Faster Restore Time Than Logical Backups What is https://www.percona.com/software/mysql-database/percona-xtrabackup Open Source Blocking Support MyISAM... Incremental/Delta Compression/Encryption Cloud Backup 9 / 42
  • 10. 10 / 42 (Data) Backup Process
  • 11. (Data) Backup Process - 1. Backup Backup .ibdfiles while in use /var/lib/mysql/ibdata1 /var/lib/mysql/imdb/aka_name.ibd /var/lib/mysql/imdb/aka_title.ibd ... 11 / 42
  • 12. (Data) Backup Process - 1. Backup Backup .ibdfiles while in use /var/lib/mysql/ibdata1 /var/lib/mysql/imdb/aka_name.ibd /var/lib/mysql/imdb/aka_title.ibd ... track changes through trx logs /var/lib/mysql/ib_log le0 /var/lib/mysql/ib_log le1 12 / 42
  • 13. (Data) Backup Process - 2. Prepare Apply changes from trx logs onto backupped .ibdfiles. 13 / 42
  • 14. (Data) Backup Process - 1. Backup #xtrabackup--backup--target-dir=/data/backups/ 16100122:16:49ConnectingtoMySQLserverhost:localhost,user:root,password:not Usingserverversion5.7.14-8-log xtrabackupversion2.4.4basedonMySQLserver5.7.13Linux(x86_64)(revisionid xtrabackup:usesposix_fadvise(). ... InnoDB:Numberofpools:1 16100122:16:49>>logscannedupto(5147619414) xtrabackup:Generatingalistoftablespaces InnoDB:AllocatedtablespaceID2formysql/plugin,oldmaximumwas0 16100122:16:50[01]Copying./ibdata1to/data/backups/ibdata1 16100122:16:50[01]Copying./mysql/plugin.ibdto/data/backups/mysql/plugin.ibd 16100122:16:50[01]Copying./mysql/servers.ibdto/data/backups/mysql/servers.ibd 16100122:16:50[01]Copying./mysql/help_topic.ibdto/data/backups/mysql/help_topic.i ... 16100122:17:13[01]Copying./imdb/users.ibdto/data/backups/imdb/users.ibd 16100122:17:13>>logscannedupto(5147619414) 16100122:17:14ExecutingFLUSHNO_WRITE_TO_BINLOGTABLES... 16100122:17:14ExecutingFLUSHTABLESWITHREADLOCK... 14 / 42
  • 15. (Data) Backup Process - 1. Backup (2) 16100122:17:14Startingtobackupnon-InnoDBtablesand les 16100122:17:14[01]Copying./mysql/db.optto/data/backups/mysql/db.opt 16100122:17:14[01]Copying./mysql/db.frmto/data/backups/mysql/db.frm 16100122:17:14[01]Copying./mysql/db.MYIto/data/backups/mysql/db.MYI 16100122:17:14[01]Copying./mysql/db.MYDto/data/backups/mysql/db.MYD 16100122:17:17[01]Copying./imdb/users.frmto/data/backups/imdb/users.frm 16100122:17:17Finishedbackingupnon-InnoDBtablesand les 16100122:17:17ExecutingFLUSHNO_WRITE_TO_BINLOGENGINELOGS... xtrabackup:Thelatestcheckpoint(forincremental):'5147619454' xtrabackup:Stoppinglogcopyingthread. .16100122:17:17>>logscannedupto(5147619463) 16100122:17:17ExecutingUNLOCKTABLES 16100122:17:17Alltablesunlocked 16100122:17:17[00]Copyingib_buffer_poolto/data/backups/ib_buffer_pool 16100122:17:17[00] ...done 16100122:17:17Backupcreatedindirectory'/data/backups/' 16100122:17:17[00]Writingbackup-my.cnf 16100122:17:17[00] ...done 16100122:17:17[00]Writingxtrabackup_info 16100122:17:17[00] ...done xtrabackup:Transactionlogoflsn(5147619405)to(5147619463)wascopied. 16100122:17:18completedOK! 15 / 42
  • 16. (Data) Backup Process - 2. Prepare (1) #xtrabackup--prepare--target-dir=/data/backups/ xtrabackupversion2.4.4basedonMySQLserver5.7.13Linux(x86_64)(revisionid:df58 xtrabackup:cdto/data/backups xtrabackup:Thistargetseemstobenotpreparedyet. ... xtrabackup:StartingInnoDBinstanceforrecovery. xtrabackup:Using104857600bytesforbufferpool(setby--use-memoryparameter) ... InnoDB:Logscanprogressedpastthecheckpointlsn5147619405 InnoDB:Doingrecovery:scanneduptologsequencenumber5147619463(0%) InnoDB:Doingrecovery:scanneduptologsequencenumber5147619463(0%) InnoDB:Databasewasnotshutdownnormally! InnoDB:Startingcrashrecovery. InnoDB:xtrabackup:LastMySQLbinlog leposition333, lenameperconaserver-bin.000007 ... InnoDB:96redorollbacksegment(s)found.1redorollbacksegment(s)areactive. InnoDB:32non-redorollbacksegment(s)areactive. InnoDB:Waitingforpurgetostart InnoDB:5.7.13started;logsequencenumber5147619463 InnoDB:xtrabackup:LastMySQLbinlog leposition333, lenameperconaserver-bin.00 xtrabackup:startingshutdownwithinnodb_fast_shutdown=1 InnoDB:FTSoptimizethreadexiting. InnoDB:Startingshutdown... InnoDB:Shutdowncompleted;logsequencenumber5147619482 16 / 42
  • 17. (Data) Backup Process - 2. Prepare (2) ... InnoDB:Settinglog le./ib_log le101sizeto64MB InnoDB:Settinglog le./ib_log le1sizeto64MB InnoDB:Renaminglog le./ib_log le101to./ib_log le0 InnoDB:Newlog lescreated,LSN=5147619482 InnoDB:Highestsupported leformatisBarracuda. InnoDB:Logscanprogressedpastthecheckpointlsn5147619852 InnoDB:Doingrecovery:scanneduptologsequencenumber5147619861(0%) InnoDB:Doingrecovery:scanneduptologsequencenumber5147619861(0%) InnoDB:Databasewasnotshutdownnormally! InnoDB:Startingcrashrecovery. InnoDB:xtrabackup:LastMySQLbinlog leposition333, lenameperconaserver-bin ... InnoDB:96redorollbacksegment(s)found.1redorollbacksegment(s)areactive. InnoDB:32non-redorollbacksegment(s)areactive. InnoDB:Waitingforpurgetostart InnoDB:5.7.13started;logsequencenumber5147619861 xtrabackup:startingshutdownwithinnodb_fast_shutdown=1 InnoDB:FTSoptimizethreadexiting. InnoDB:Startingshutdown... InnoDB:Shutdowncompleted;logsequencenumber5147619880 16100122:30:05completedOK! 17 / 42
  • 18. 18 / 42 Restore Process
  • 19. Restore Process After preparation, the backup directory ==data directory 19 / 42
  • 20. Restore Process After preparation, the backup directory ==data directory #cp-R/data/backup//var/lib/mysql #chown-Rmysql:mysql/var/lib/mysql #systemctlstartmysqld 20 / 42
  • 23. Incremental Backups Only Copy InnoDB Pages That Changed (still copies all non InnoDB Tables) 23 / 42
  • 24. Pro: Smaller backup size Faster To Backup Incremental & Delta Incremental Backups Only Copy InnoDB Pages That Changed (still copies all non InnoDB Tables) 24 / 42
  • 25. Pro: Smaller backup size Faster To Backup Incremental & Delta Con: Slower to restore than full On , all data is read Incremental Backups Only Copy InnoDB Pages That Changed (still copies all non InnoDB Tables) 25 / 42
  • 26. Incremental Backups - Process 26 / 42
  • 27. Incremental Backups - Process Take Incremental: #xtrabackup--backup --target-dir=/data/backups/inc/tuesday/ --incremental-basedir=/data/backups/full/sunday/ 27 / 42
  • 28. Incremental Backups - Process Take Incremental: #xtrabackup--backup --target-dir=/data/backups/inc/tuesday/ --incremental-basedir=/data/backups/full/sunday/ Prepare Full #xtrabackup--prepare --apply-log-only --target-dir=/data/backups/mysql/ 28 / 42
  • 29. Incremental Backups - Process Take Incremental: #xtrabackup--backup --target-dir=/data/backups/inc/tuesday/ --incremental-basedir=/data/backups/full/sunday/ Prepare Full #xtrabackup--prepare --apply-log-only --target-dir=/data/backups/mysql/ Apply Incremental #xtrabackup--prepare--apply-log-only --target-dir=/data/backups/full/sunday --incremental-dir=/data/backups/inc/tuesday/ 29 / 42
  • 30. 30 / 42 Compression, Streaming, Encryption
  • 35. 35 / 42 Cloud Backups - α
  • 36. Cloud Backups - α Stream to Cloud directly Swift α 36 / 42
  • 37. Cloud Backups - α Put #xtrabackup--backup--stream=xbstream--target-dir=/data/backups| xbcloudput--storage=Swift --swift-container=test--swift-user=test:tester --swift-auth-url=http://192.168.8.80:8080/ --swift-key=testing full_backup 37 / 42
  • 38. Cloud Backups - α Put #xtrabackup--backup--stream=xbstream--target-dir=/data/backups| xbcloudput--storage=Swift --swift-container=test--swift-user=test:tester --swift-auth-url=http://192.168.8.80:8080/ --swift-key=testing full_backup Get #xbcloudget--storage=Swift --swift-container=test--swift-user=test:tester --swift-auth-url=http://192.168.8.80:8080/ --swift-key=testing full_backup|xbstream-xv-C/tmp/downloaded_full #xtrabackup--prepare--target-dir=/tmp/downloaded_full #xtrabackup--copy-back--target-dir=/tmp/downloaded_full 38 / 42
  • 40. Backup Locks Implements LOCKTABLESFORBACKUPto Avoid FLUSHTABLESWITHREADLOCK, used for: Non-InnoDB Tables (mysqlschema... ) Binary Log Position Blocks DML to non-InnoDB Blocks DDL Allows Reads/Writes to InnoDB tables during 40 / 42
  • 41. Change Page Tracking - Incremental Backups Incremental backup does no longer require reading all pages to determine if a page changed since the last full backup How: Percona Server tracks pages changed in InnoDB Tablespaces Incremental backup reads changed page file, only reads changed pages Why: Less load on database server (a lot less Disk IO) 41 / 42