MySQL Backup Strategy @ IEDR



Similar documents
MySQL backups: strategy, tools, recovery scenarios. Akshay Suryawanshi Roman Vynar

MySQL backup and restore best practices. Roman Vynar September 21, 2015

MySQL Backup and Recovery: Tools and Techniques. Presented by: René Senior Operational DBA

Zero-Downtime MySQL Backups

A Quick Start Guide to Backup Technologies

MySQL Enterprise Backup

Testing and Verifying your MySQL Backup Strategy

Percona Server features for OpenStack and Trove Ops

MySQL Backups: From strategy to Implementation

MySQL Backup and Security. Best practices on how to run MySQL on Linux in a secure way Lenz Grimmer <lenz@mysql.com>

Web-Based Data Backup Solutions

S W I S S O R A C L E U S E R G R O U P. N e w s l e t t e r 3 / J u l i with MySQL 5.5. Spotlight on the SQL Tuning

MySQL Enterprise Backup User's Guide (Version )

MySQL Enterprise Backup User's Guide (Version 3.5.4)

MySQL Enterprise Backup User's Guide (Version 3.5.4)

MySQL Enterprise Backup User's Guide (Version 3.9.0)

Using Depositit to Backup Microsoft Exchange Server

Backup and Disaster Recovery Restoration Guide

XtraBackup: Hot Backups and More

High Availability, Disaster Recovery and Extreme Read Scaling using Binlog Servers. Jean-François Gagné jeanfrancois DOT gagne AT booking.

Lenz Grimmer

Top 10 Reasons why MySQL Experts Switch to SchoonerSQL - Solving the common problems users face with MySQL

Managing and Maintaining a Microsoft Windows Server 2003 Environment

Database Administration with MySQL

Determining your storage engine usage

NE-2273B Managing and Maintaining a Microsoft Windows Server 2003 Environment

How To Use Rackspace Backup On A Computer Or A Hard Drive

MFR IT Technical Guides

Best Practices for Using MySQL in the Cloud

Backup and Recovery using PITR Mark Jones EnterpriseDB Corporation. All rights reserved. 1

One Solution for Real-Time Data protection, Disaster Recovery & Migration

Preparing for the Big Oops! Disaster Recovery Sites for MySQL. Robert Hodges, CEO, Continuent MySQL Conference 2011

White Paper. Alfresco Backup and Disaster Recovery

Designing Database Solutions for Microsoft SQL Server 2012 MOC 20465

XtraBackup. Vadim Tkachenko CTO, Co-Founder, Percona Inc Percona Live SF Feb 2011

Exam : Transition Your MCTS on SQL Server 2008 to MCSA: SQL Server 2012, Part 2. Title : The safer, easier way to help you pass any IT exams.

Zmanda Cloud Backup Frequently Asked Questions

MySQL and Virtualization Guide

Competitive Analysis Retrospect And Our Competition

Maintaining a Microsoft Windows Server 2003 Environment

MySQL Administration and Management Essentials

How To Test Backup And Recovery For Mysam And Innodb For Myroster

Architectures Haute-Dispo Joffrey MICHAÏE Consultant MySQL

Outline SSS Configuring and Troubleshooting Windows Server 2008 Active Directory

Securing Your Microsoft SQL Server Databases in an Enterprise Environment

Microsoft SQL Database Administrator Certification

MySQL performance in a cloud. Mark Callaghan

Last month, I covered the historical problems of getting good

Designing and Deploying Messaging Solutions with Microsoft Exchange Server 2010 Service Pack B; 5 days, Instructor-led

Administering Microsoft SQL Server Databases

Percona XtraBackup: install, usage, tricks

Table of Contents. Introduction. Audience. At Course Completion

How To Use A Recoverypoint Server Appliance For A Disaster Recovery

Database Mirroring: High Availability (HA) and Disaster Recovery (DR) Technology

MySQL 6.0 Backup. Replication and Backup Team. Dr. Lars Thalmann Dr. Charles A. Bell Rafal Somla. Presented by, MySQL & O Reilly Media, Inc.

Percona XtraBackup Documentation. Percona Inc

Designing, Optimizing and Maintaining a Database Administrative Solution for Microsoft SQL Server 2008

Simple Storage Service (S3)

Whitepaper: Back Up SAP HANA and SUSE Linux Enterprise Server with SEP sesam. Copyright 2014 SEP

Lotus Domino 8 Monitoring and Maintenance

Symantec Backup Exec 11d for Windows Servers New Encryption Capabilities

Using MySQL for Big Data Advantage Integrate for Insight Sastry Vedantam

Designing Database Solutions for Microsoft SQL Server 2012

Administering Microsoft SQL Server Databases

Administering Microsoft SQL Server Databases

MS Design, Optimize and Maintain Database for Microsoft SQL Server 2008

D78850GC10. Oracle Database 12c Backup and Recovery Workshop. Summary. Introduction. Prerequisites

Dave Stokes MySQL Community Manager

Version: Page 1 of 5

VEMBU VS VEEAM. Why Vembu is Better VEMBU TECHNOLOGIES TRUSTED BY OVER 25,000 BUSINESSES.

Protecting Virtual Servers with Acronis True Image

Acronis True Image 2015 REVIEWERS GUIDE

Course 20462C: Administering Microsoft SQL Server Databases

Protecting Virtual Servers with Acronis True Image Echo

Be Very Afraid. Christophe Pettus PostgreSQL Experts Logical Decoding & Backup Conference Europe 2014

Course Outline: Course 6317: Upgrading Your SQL Server 2000 Database Administration (DBA) Skills to SQL Server 2008 DBA Skills

Agenda. Overview Configuring the database for basic Backup and Recovery Backing up your database Restore and Recovery Operations Managing your backups

IDERA WHITEPAPER. The paper will cover the following ten areas: Monitoring Management. WRITTEN BY Greg Robidoux

Key Benefits. R1Soft CDP Server Software. R1Soft Continuous Data Protection for Linux and Windows Systems. Bare-Metal Disaster Recovery

Disaster Recovery Checklist Disaster Recovery Plan for <System One>

Ingres Backup and Recovery. Bruno Bompar Senior Manager Customer Support

MySQL: Cloud vs Bare Metal, Performance and Reliability

Library Recovery Center

ManageEngine EventLog Analyzer. Best Practices Document

Database Backup and Restore Mechanism. Presented by : Mary Meladath

MySQL Replication. openark.org

StorageCraft Technology Corporation Leading the Way to Safer Computing StorageCraft Technology Corporation. All Rights Reserved.

America s Most Wanted a metric to detect persistently faulty machines in Hadoop

Sawmill Log Analyzer Best Practices!! Page 1 of 6. Sawmill Log Analyzer Best Practices

Backup Exec Private Cloud Services. Planning and Deployment Guide

EISOO AnyBackup Family 5.0 All-in-One Protection

Eurobackup PRO: Configuration Best Practices

Tushar Joshi Turtle Networks Ltd

6231A - Maintaining a Microsoft SQL Server 2008 Database

RMAN What is Rman Why use Rman Understanding The Rman Architecture Taking Backup in Non archive Backup Mode Taking Backup in archive Mode

Availability for your modern datacenter

Product Brief. it s Backed Up

Implementing Microsoft SharePoint on NetApp Storage Systems Course MSSP; 5 Days, Instructor-led

Transcription:

MySQL Backup Strategy @ IEDR Marcelo Altmann Oracle Certified Professional, MySQL 5 Database Administrator Oracle Certified Professional, MySQL 5 Developer Percona Live London November 2014

Who am I? MySQL Database Administrator @ IE Domain Registry (IEDR) Student Systems for Internet @ FEEVALE University Oracle Certified Professional MySQL 5 Database Administrator MySQL 5 Developer marceloaltmann.com @altmannmarcelo

What IEDR Does? Manages the official country code top level domain for Ireland -.ie Maintain the database of.ie registered domain names MySQL 5.6 Mainly InnoDB ~80% reads

Backup Introduction What for? Add new slave to your replication topology Reproduce some bug on your labs Point-in-time recovery Disaster Recovery

Backup Introduction - Replication as backup Replication is a backup, but not for all scenarios: When is replication a backup? Physical file corruption Any Master Server component fail ( RAM, Disk, Network, CPU )

Backup Introduction Replication as backup Including OS errors

Backup Introduction When Replication doesn t works as a backup? Application bugs Someone hacks into your database server Wrong admin commands like DELETE / UPDATE / DROP

Backup - Logical Logical Save information represented as logical structure ( CREATE DATABASE, CREATE TABLE, INSERT ) Can be used to restore all databases, single database, single table Slower than Physical It's taken while MySQL is running Done via mysqldump, mydumper, SELECT... INTO OUTFILE

Backup - Physical Raw copies of directory and files of database contents (copy of MySQL datadir) No selective restore Faster than Logical Done via OS copy commands, mysqlbackup, mysqlhotcopy, percona xtrabackup

Backup life cycle Backup (Logical) Checksum Verify Slave Encrypt Backup (Physical) Distribute Restore

Backup - Infrastructure

Backup - Infrastructure

Logical Backup Backup (Logical) Checksum Verify Slave Encrypt Backup (Physical) Distribute Restore

Logical Backup mysqldump Store backup duration Backup output of SHOW SLAVE STATUS\G Verify exit status and last line of the dump

Logical Backup exit status and last line Backup (Logical) Checksum Verify Slave Encrypt Backup (Physical) Distribute Restore

Logical Backup exit status and last line

Logical Backup exit status and last line

Logical Backup Compress and Encrypt Backup (Logical) Checksum Verify Slave Encrypt Backup (Physical) Distribute Restore

Logical Backup Compress and Encrypt Change file permissions Compress backup to save disk space (GZIP, BZIP2, ) Encrypt your backups ( openssl )

Logical Backup Compress and Encrypt

Distribute Same Server Backup (Logical) Checksum Verify Slave Encrypt Backup (Physical) Distribute Restore

Distribute Same Server

Distribute Same DC

Distribute Same Region

Distribute

Distribute Send copy of your backups to different datacenter Pay attention on the distance between datacenters Natural Disasters! scp / rsync Keep copy for 1 week

Restore Backup (Logical) Checksum Verify Slave Encrypt Backup (Physical) Distribute Restore

Restore Drop everything on MySQL restore instance Restore dump Check exit status of mysql command

Physical Backup Fast Recovery Backup (Logical) Checksum Verify Slave Encrypt Backup (Physical) Distribute Restore

Physical Backup Fast Recovery Stop MySQL Compress datadir Encrypt file

Slave Backup (Logical) Checksum Verify Slave Encrypt Backup (Physical) Distribute Restore

Slave

Slave Configure restore server as slave Use --master-data Use --relay-log-info-repository=table Use Relay_Master_Log_File and Exec_Master_Log_Pos from SHOW SLAVE STATUS Use GTID

Checksum Backup (Logical) Checksum Verify Slave Encrypt Backup (Physical) Distribute Restore

Checksum Verify data integrity between master and slaves pt-table-checksum Monitor time

Backup binlog - Point in time recovery mysqlbinlog -raw -read-from-remote-server -stop-never Checksum master binlog and backup binlog Compress Encrypt

Audit Copy Allows you to restore your database to any point in time Grouped by month First Logical and Physical backup of each month All binary logs

Questions? @altmannmarcelo marceloaltmann.com