SlideShare a Scribd company logo
MARIADB
PRESENTATION
JENS BOLLMANN
Instructor and Consultant
MariaDB Corporation
●
Consulting worldwide
●
Performance Tuning
●
High Availability
●
Architecture and Design
●
Security
●
Instructor worldwide
●
Entire MariaDB curriculum
●
Certification preparation
WHOAMI
Nobody needs backups.
The only thing we need is recovery.
—Manager seeking for a new challenge ...
Your own employees are the greatest
cause of data loss, beating even malicious
attacks by hackers or nature impacts on
Data Centers.
— DBA
Have a backup and do not argue about the
costs→ there are tons of examples from
companies failed to bankruptcy because of a
missing backup & RECOVERY strategy
—Wise DBA
1. What data is important
2. How much data can my business afford in case of a loss
3. How long can I stand a downtime
4. Is my backup protected outside my company and retrieval easy
and tested → seek for access and time
5. Do we have a proper recovery tested regularly
Common mistakes
Backup
Commonly used tools with MariaDB
– mysqldump slow/portable
– mariabackup hot
●
supports encryption!
– mydumper * individual tables
* github
Backup
Commonly used tools
– mysqldump -A | gzip > dumpfile.sql.gz
– mariabackup
●
mariabackup - - backup - - target-dir=/backupfolder
– Make sure backup is stored somewhere else in different locations
Recovery
Commonly used tools
– mysql < dumpfile.sql
– zcat dumpfile.sql.gz | mysql
– mariabackup (supports encryption!)
●
mariabackup - - prepare
●
mariabackup - - copy-back
●
chown to mariadb owner
HELPER BINLOG → PITR
Synchronize your Backup with Binary Log
HELPER BINLOG → PITR
– mysqldump - - master-data=2
– mysqldump - - gtid
– mariabackup
Have the information preserved with the dumpfile or with separate files – in mariabackup the files contain the binary log filename and position or GTID
HELPER BINLOG → PITR
Backup
binlog.000001binlog.000001 binlog.000002binlog.000002
PebCaS issue,
e.g. DROP DATABASE hr;
PITR Demo
•
Create a backup synced with binary log
•
Write data
•
Corrupt database or delete table
•
Write data
•
IDENTIFY issue reported by users
•
STOP OPERATION
•
Analyze and develop recovery strategy
•
Restore youngest backup
•
Apply binary logs with stop and start position
•
START OPERATION
•
DONE
HELPER BINLOG → Live demo
Backup
binlog.000001binlog.000001 binlog.000002binlog.000002
ADVANCED BACKUP STRATEGIES
– mariabackup
●
socat stream to backup servers
– Different geo location
– Used in Cluster setups
●
gzip
ADVANCED BACKUP STRATEGIES
– Delayed replication
– Szenario: 20 minutes old data
CHANGE MASTER TO master_delay=1200;
– On human errors
●
Switchover to slave
●
Apply copied binlogs to that slave
HELPER BINLOG → FLASHBACK
Rollback in time
– mysqlbinlog - - flashback
Flashback Live Demo
•
Run mysqlbinlog in flashback mode
•
It will process the binary logs in reverse
order
•
INSERTs becomes DELETEs
•
DELETEs becomes INSERTs
•
UPDATE becomes UPDATE of previous
data
Actual VERSIONS OF MariaDB
– Backup is done in stages
●
InnoDB first and hot
●
Other non transactional Storage
engines require some locking
●
Apply changes in InnoDB after other
storage engine have been unlocked
o
THANK YOU!
Creating a complete disaster recovery strategy

More Related Content

PDF
Redpanda and ClickHouse
Altinity Ltd
 
PPTX
Achieving High Availability in PostgreSQL
Mydbops
 
PPTX
AlwaysON Basics
Harsh Chawla
 
PDF
Using Zabbix in IoT Architecture
Gruppo Finmatica
 
DOCX
Keepalived+MaxScale+MariaDB_운영매뉴얼_1.0.docx
NeoClova
 
PPTX
Palo Alto Networks 28.5.2013
Belsoft
 
PDF
Bulk Loading Data into Cassandra
DataStax
 
PPTX
Ibm spectrum scale fundamentals workshop for americas part 1 components archi...
xKinAnx
 
Redpanda and ClickHouse
Altinity Ltd
 
Achieving High Availability in PostgreSQL
Mydbops
 
AlwaysON Basics
Harsh Chawla
 
Using Zabbix in IoT Architecture
Gruppo Finmatica
 
Keepalived+MaxScale+MariaDB_운영매뉴얼_1.0.docx
NeoClova
 
Palo Alto Networks 28.5.2013
Belsoft
 
Bulk Loading Data into Cassandra
DataStax
 
Ibm spectrum scale fundamentals workshop for americas part 1 components archi...
xKinAnx
 

What's hot (20)

PPT
Training netbackup6x2
M Shariff
 
PPTX
Running MariaDB in multiple data centers
MariaDB plc
 
PDF
RADIUS and LDAP - pfSense Hangout August 2015
Netgate
 
PPTX
Ibm spectrum scale fundamentals workshop for americas part 4 spectrum scale_r...
xKinAnx
 
PPT
Лекція №13
Michael Attwood
 
PPTX
PMM database open source monitoring solution
Lior Altarescu
 
PPT
Virtualization in cloud
Ashok Kumar
 
PDF
MariaDB Server Performance Tuning & Optimization
MariaDB plc
 
PDF
Always on in sql server 2017
Gianluca Hotz
 
PDF
MySQL Advanced Administrator 2021 - 네오클로바
NeoClova
 
PDF
MySQL Security
Ted Wennmark
 
PPTX
Ibm spectrum scale fundamentals workshop for americas part 4 Replication, Str...
xKinAnx
 
PDF
MariaDB Galera Cluster - Simple, Transparent, Highly Available
MariaDB Corporation
 
PPTX
[135] 오픈소스 데이터베이스, 은행 서비스에 첫발을 내밀다.
NAVER D2
 
PDF
MySQL Administrator 2021 - 네오클로바
NeoClova
 
PDF
DRP (Stretch Cluster) for HDP - Future of Data : Paris
Mohamed Mehdi Ben Aissa
 
PPTX
Capacity Planning For Your Growing MongoDB Cluster
MongoDB
 
PDF
Denodo Data Virtualization Platform: Scalability (session 3 from Architect to...
Denodo
 
PDF
Top-10-Features-In-MySQL-8.0 - Vinoth Kanna RS - Mydbops Team
Mydbops
 
PDF
gDBClone - Database Clone “onecommand Automation Tool”
Ruggero Citton
 
Training netbackup6x2
M Shariff
 
Running MariaDB in multiple data centers
MariaDB plc
 
RADIUS and LDAP - pfSense Hangout August 2015
Netgate
 
Ibm spectrum scale fundamentals workshop for americas part 4 spectrum scale_r...
xKinAnx
 
Лекція №13
Michael Attwood
 
PMM database open source monitoring solution
Lior Altarescu
 
Virtualization in cloud
Ashok Kumar
 
MariaDB Server Performance Tuning & Optimization
MariaDB plc
 
Always on in sql server 2017
Gianluca Hotz
 
MySQL Advanced Administrator 2021 - 네오클로바
NeoClova
 
MySQL Security
Ted Wennmark
 
Ibm spectrum scale fundamentals workshop for americas part 4 Replication, Str...
xKinAnx
 
MariaDB Galera Cluster - Simple, Transparent, Highly Available
MariaDB Corporation
 
[135] 오픈소스 데이터베이스, 은행 서비스에 첫발을 내밀다.
NAVER D2
 
MySQL Administrator 2021 - 네오클로바
NeoClova
 
DRP (Stretch Cluster) for HDP - Future of Data : Paris
Mohamed Mehdi Ben Aissa
 
Capacity Planning For Your Growing MongoDB Cluster
MongoDB
 
Denodo Data Virtualization Platform: Scalability (session 3 from Architect to...
Denodo
 
Top-10-Features-In-MySQL-8.0 - Vinoth Kanna RS - Mydbops Team
Mydbops
 
gDBClone - Database Clone “onecommand Automation Tool”
Ruggero Citton
 
Ad

Similar to Creating a complete disaster recovery strategy (20)

PDF
MariaDB Data Protection: Backup Strategies for the Real World
Federico Razzoli
 
PPTX
MySQL backup and restore performance
Vinicius M Grippa
 
PDF
Webinar slides: Backup Management for MySQL, MariaDB, PostgreSQL & MongoDB wi...
Severalnines
 
PDF
Postgres Point-in-Time Recovery
EDB
 
PDF
INFINIDAT InfiniGuard - 20220330.pdf
MarketingArrowECS_CZ
 
PDF
A Backup Today Saves Tomorrow
Andrew Moore
 
PDF
IM B10
Vesna Vrdoljak
 
PDF
Upgrade to MySQL 5.6 without downtime
Olivier DASINI
 
PDF
Replication features, technologies and 3rd party Extinction
Ben Mildren
 
PPTX
10 ways to improve your rman script
Maris Elsins
 
PPTX
10 Problems with your RMAN backup script
Yury Velikanov
 
PDF
MySQL and MariaDB Backups
Federico Razzoli
 
PPTX
MySQL DBA
lalit choudhary
 
PDF
OSBConf 2016: The Database Backup is done - what next? - by Jörg Brühe
NETWAYS
 
PDF
Are the Native SQL Server Backup Utilities Holding You Back?
SQLDBApros
 
PPTX
PL22 - Backup and Restore Performance.pptx
Vinicius M Grippa
 
PPTX
Webinar: Using the Cloud to Fix Backup's Blind Spot - Endpoint Data Protection
Storage Switzerland
 
PPTX
Webinar: Backups + Disaster Recovery
MongoDB
 
DOCX
Avamar Run Book - 5-14-2015_v3
Bill Oliver
 
PDF
M|18 Planning for Disaster Recovery, online and offline
MariaDB plc
 
MariaDB Data Protection: Backup Strategies for the Real World
Federico Razzoli
 
MySQL backup and restore performance
Vinicius M Grippa
 
Webinar slides: Backup Management for MySQL, MariaDB, PostgreSQL & MongoDB wi...
Severalnines
 
Postgres Point-in-Time Recovery
EDB
 
INFINIDAT InfiniGuard - 20220330.pdf
MarketingArrowECS_CZ
 
A Backup Today Saves Tomorrow
Andrew Moore
 
Upgrade to MySQL 5.6 without downtime
Olivier DASINI
 
Replication features, technologies and 3rd party Extinction
Ben Mildren
 
10 ways to improve your rman script
Maris Elsins
 
10 Problems with your RMAN backup script
Yury Velikanov
 
MySQL and MariaDB Backups
Federico Razzoli
 
MySQL DBA
lalit choudhary
 
OSBConf 2016: The Database Backup is done - what next? - by Jörg Brühe
NETWAYS
 
Are the Native SQL Server Backup Utilities Holding You Back?
SQLDBApros
 
PL22 - Backup and Restore Performance.pptx
Vinicius M Grippa
 
Webinar: Using the Cloud to Fix Backup's Blind Spot - Endpoint Data Protection
Storage Switzerland
 
Webinar: Backups + Disaster Recovery
MongoDB
 
Avamar Run Book - 5-14-2015_v3
Bill Oliver
 
M|18 Planning for Disaster Recovery, online and offline
MariaDB plc
 
Ad

More from MariaDB plc (20)

PDF
MariaDB Berlin Roadshow Slides - 8 April 2025
MariaDB plc
 
PDF
MariaDB München Roadshow - 24 September, 2024
MariaDB plc
 
PDF
MariaDB Paris Roadshow - 19 September 2024
MariaDB plc
 
PDF
MariaDB Amsterdam Roadshow: 19 September, 2024
MariaDB plc
 
PDF
MariaDB Paris Workshop 2023 - MaxScale 23.02.x
MariaDB plc
 
PDF
MariaDB Paris Workshop 2023 - Newpharma
MariaDB plc
 
PDF
MariaDB Paris Workshop 2023 - Cloud
MariaDB plc
 
PDF
MariaDB Paris Workshop 2023 - MariaDB Enterprise
MariaDB plc
 
PDF
MariaDB Paris Workshop 2023 - Performance Optimization
MariaDB plc
 
PDF
MariaDB Paris Workshop 2023 - MaxScale
MariaDB plc
 
PDF
MariaDB Paris Workshop 2023 - novadys presentation
MariaDB plc
 
PDF
MariaDB Paris Workshop 2023 - DARVA presentation
MariaDB plc
 
PDF
MariaDB Tech und Business Update Hamburg 2023 - MariaDB Enterprise Server
MariaDB plc
 
PDF
MariaDB SkySQL Autonome Skalierung, Observability, Cloud-Backup
MariaDB plc
 
PDF
Einführung : MariaDB Tech und Business Update Hamburg 2023
MariaDB plc
 
PDF
Hochverfügbarkeitslösungen mit MariaDB
MariaDB plc
 
PDF
Die Neuheiten in MariaDB Enterprise Server
MariaDB plc
 
PDF
Global Data Replication with Galera for Ansell Guardian®
MariaDB plc
 
PDF
Introducing workload analysis
MariaDB plc
 
PDF
Under the hood: SkySQL monitoring
MariaDB plc
 
MariaDB Berlin Roadshow Slides - 8 April 2025
MariaDB plc
 
MariaDB München Roadshow - 24 September, 2024
MariaDB plc
 
MariaDB Paris Roadshow - 19 September 2024
MariaDB plc
 
MariaDB Amsterdam Roadshow: 19 September, 2024
MariaDB plc
 
MariaDB Paris Workshop 2023 - MaxScale 23.02.x
MariaDB plc
 
MariaDB Paris Workshop 2023 - Newpharma
MariaDB plc
 
MariaDB Paris Workshop 2023 - Cloud
MariaDB plc
 
MariaDB Paris Workshop 2023 - MariaDB Enterprise
MariaDB plc
 
MariaDB Paris Workshop 2023 - Performance Optimization
MariaDB plc
 
MariaDB Paris Workshop 2023 - MaxScale
MariaDB plc
 
MariaDB Paris Workshop 2023 - novadys presentation
MariaDB plc
 
MariaDB Paris Workshop 2023 - DARVA presentation
MariaDB plc
 
MariaDB Tech und Business Update Hamburg 2023 - MariaDB Enterprise Server
MariaDB plc
 
MariaDB SkySQL Autonome Skalierung, Observability, Cloud-Backup
MariaDB plc
 
Einführung : MariaDB Tech und Business Update Hamburg 2023
MariaDB plc
 
Hochverfügbarkeitslösungen mit MariaDB
MariaDB plc
 
Die Neuheiten in MariaDB Enterprise Server
MariaDB plc
 
Global Data Replication with Galera for Ansell Guardian®
MariaDB plc
 
Introducing workload analysis
MariaDB plc
 
Under the hood: SkySQL monitoring
MariaDB plc
 

Recently uploaded (20)

PDF
Using licensed Data Loss Prevention (DLP) as a strategic proactive data secur...
Q-Advise
 
PDF
MiniTool Power Data Recovery Crack New Pre Activated Version Latest 2025
imang66g
 
PDF
Applitools Platform Pulse: What's New and What's Coming - July 2025
Applitools
 
PPTX
Contractor Management Platform and Software Solution for Compliance
SHEQ Network Limited
 
PPTX
Can You Build Dashboards Using Open Source Visualization Tool.pptx
Varsha Nayak
 
PDF
An Experience-Based Look at AI Lead Generation Pricing, Features & B2B Results
Thomas albart
 
PDF
Key Features to Look for in Arizona App Development Services
Net-Craft.com
 
PDF
Balancing Resource Capacity and Workloads with OnePlan – Avoid Overloading Te...
OnePlan Solutions
 
PDF
advancepresentationskillshdhdhhdhdhdhhfhf
jasmenrojas249
 
PDF
On Software Engineers' Productivity - Beyond Misleading Metrics
Romén Rodríguez-Gil
 
PDF
Enhancing Healthcare RPM Platforms with Contextual AI Integration
Cadabra Studio
 
PPTX
Odoo Integration Services by Candidroot Solutions
CandidRoot Solutions Private Limited
 
PPTX
Role Of Python In Programing Language.pptx
jaykoshti048
 
PPTX
ConcordeApp: Engineering Global Impact & Unlocking Billions in Event ROI with AI
chastechaste14
 
PPTX
Maximizing Revenue with Marketo Measure: A Deep Dive into Multi-Touch Attribu...
bbedford2
 
PDF
New Download FL Studio Crack Full Version [Latest 2025]
imang66g
 
PDF
Salesforce Implementation Services Provider.pdf
VALiNTRY360
 
PDF
Summary Of Odoo 18.1 to 18.4 : The Way For Odoo 19
CandidRoot Solutions Private Limited
 
PDF
49784907924775488180_LRN2959_Data_Pump_23ai.pdf
Abilash868456
 
PDF
What to consider before purchasing Microsoft 365 Business Premium_PDF.pdf
Q-Advise
 
Using licensed Data Loss Prevention (DLP) as a strategic proactive data secur...
Q-Advise
 
MiniTool Power Data Recovery Crack New Pre Activated Version Latest 2025
imang66g
 
Applitools Platform Pulse: What's New and What's Coming - July 2025
Applitools
 
Contractor Management Platform and Software Solution for Compliance
SHEQ Network Limited
 
Can You Build Dashboards Using Open Source Visualization Tool.pptx
Varsha Nayak
 
An Experience-Based Look at AI Lead Generation Pricing, Features & B2B Results
Thomas albart
 
Key Features to Look for in Arizona App Development Services
Net-Craft.com
 
Balancing Resource Capacity and Workloads with OnePlan – Avoid Overloading Te...
OnePlan Solutions
 
advancepresentationskillshdhdhhdhdhdhhfhf
jasmenrojas249
 
On Software Engineers' Productivity - Beyond Misleading Metrics
Romén Rodríguez-Gil
 
Enhancing Healthcare RPM Platforms with Contextual AI Integration
Cadabra Studio
 
Odoo Integration Services by Candidroot Solutions
CandidRoot Solutions Private Limited
 
Role Of Python In Programing Language.pptx
jaykoshti048
 
ConcordeApp: Engineering Global Impact & Unlocking Billions in Event ROI with AI
chastechaste14
 
Maximizing Revenue with Marketo Measure: A Deep Dive into Multi-Touch Attribu...
bbedford2
 
New Download FL Studio Crack Full Version [Latest 2025]
imang66g
 
Salesforce Implementation Services Provider.pdf
VALiNTRY360
 
Summary Of Odoo 18.1 to 18.4 : The Way For Odoo 19
CandidRoot Solutions Private Limited
 
49784907924775488180_LRN2959_Data_Pump_23ai.pdf
Abilash868456
 
What to consider before purchasing Microsoft 365 Business Premium_PDF.pdf
Q-Advise
 

Creating a complete disaster recovery strategy

  • 1. MARIADB PRESENTATION JENS BOLLMANN Instructor and Consultant MariaDB Corporation
  • 2. ● Consulting worldwide ● Performance Tuning ● High Availability ● Architecture and Design ● Security ● Instructor worldwide ● Entire MariaDB curriculum ● Certification preparation WHOAMI
  • 3. Nobody needs backups. The only thing we need is recovery. —Manager seeking for a new challenge ...
  • 4. Your own employees are the greatest cause of data loss, beating even malicious attacks by hackers or nature impacts on Data Centers. — DBA
  • 5. Have a backup and do not argue about the costs→ there are tons of examples from companies failed to bankruptcy because of a missing backup & RECOVERY strategy —Wise DBA
  • 6. 1. What data is important 2. How much data can my business afford in case of a loss 3. How long can I stand a downtime 4. Is my backup protected outside my company and retrieval easy and tested → seek for access and time 5. Do we have a proper recovery tested regularly Common mistakes
  • 7. Backup Commonly used tools with MariaDB – mysqldump slow/portable – mariabackup hot ● supports encryption! – mydumper * individual tables * github
  • 8. Backup Commonly used tools – mysqldump -A | gzip > dumpfile.sql.gz – mariabackup ● mariabackup - - backup - - target-dir=/backupfolder – Make sure backup is stored somewhere else in different locations
  • 9. Recovery Commonly used tools – mysql < dumpfile.sql – zcat dumpfile.sql.gz | mysql – mariabackup (supports encryption!) ● mariabackup - - prepare ● mariabackup - - copy-back ● chown to mariadb owner
  • 10. HELPER BINLOG → PITR Synchronize your Backup with Binary Log
  • 11. HELPER BINLOG → PITR – mysqldump - - master-data=2 – mysqldump - - gtid – mariabackup Have the information preserved with the dumpfile or with separate files – in mariabackup the files contain the binary log filename and position or GTID
  • 12. HELPER BINLOG → PITR Backup binlog.000001binlog.000001 binlog.000002binlog.000002 PebCaS issue, e.g. DROP DATABASE hr;
  • 13. PITR Demo • Create a backup synced with binary log • Write data • Corrupt database or delete table • Write data • IDENTIFY issue reported by users • STOP OPERATION • Analyze and develop recovery strategy • Restore youngest backup • Apply binary logs with stop and start position • START OPERATION • DONE
  • 14. HELPER BINLOG → Live demo Backup binlog.000001binlog.000001 binlog.000002binlog.000002
  • 15. ADVANCED BACKUP STRATEGIES – mariabackup ● socat stream to backup servers – Different geo location – Used in Cluster setups ● gzip
  • 16. ADVANCED BACKUP STRATEGIES – Delayed replication – Szenario: 20 minutes old data CHANGE MASTER TO master_delay=1200; – On human errors ● Switchover to slave ● Apply copied binlogs to that slave
  • 17. HELPER BINLOG → FLASHBACK Rollback in time – mysqlbinlog - - flashback
  • 18. Flashback Live Demo • Run mysqlbinlog in flashback mode • It will process the binary logs in reverse order • INSERTs becomes DELETEs • DELETEs becomes INSERTs • UPDATE becomes UPDATE of previous data
  • 19. Actual VERSIONS OF MariaDB – Backup is done in stages ● InnoDB first and hot ● Other non transactional Storage engines require some locking ● Apply changes in InnoDB after other storage engine have been unlocked o