giovedì 4 ottobre 12



Similar documents
There is no U N D O h ere!

Barman Backup and Recovery Manager for PostgreSQL Tutorial

PostgreSQL Backup Strategies

BackupPC. Network Startup Resource Center

D12CBR Oracle Database 12c: Backup and Recovery Workshop NEW

Using HP StoreOnce Backup systems for Oracle database backups

Oracle 11g Database Administration

Oracle Recovery Manager

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

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

Protecting SQL Server Databases Software Pursuits, Inc.

Product Brief. it s Backed Up

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

11. Configuring the Database Archiving Mode.

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

11. Oracle Recovery Manager Overview and Configuration.

BACKUP BEST PRACTICES FOR A XENSERVER & XENDESKTOP ENVIRONMENT

Yiwo Tech Development Co., Ltd. EaseUS Todo Backup. Reliable Backup & Recovery Solution. EaseUS Todo Backup Solution Guide. All Rights Reserved Page 1

Configuring Backup Settings. Copyright 2009, Oracle. All rights reserved.

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

IBM TSM DISASTER RECOVERY BEST PRACTICES WITH EMC DATA DOMAIN DEDUPLICATION STORAGE

Call: Disaster Recovery/Business Continuity (DR/BC) Services From VirtuousIT

EMC DATA DOMAIN OPERATING SYSTEM

Objectif. Participant. Prérequis. Pédagogie. Oracle Database 11g - Administration Workshop II - LVC. 5 Jours [35 Heures]

Designing Database Solutions for Microsoft SQL Server 2012 MOC 20465

Oracle Database 10g: Administration Workshop II Release 2

Oracle Database 11g: Administration Workshop II

Oracle Database 10g: Backup and Recovery 1-2

Oracle Database 11g: Administration Workshop II DBA Release 2

Oracle Database 11g: Administration Workshop II DBA Release 2

DB2 9 for LUW Advanced Database Recovery CL492; 4 days, Instructor-led

EMC Data Domain Boost for Oracle Recovery Manager (RMAN)

Exadata and Database Machine Administration Seminar

Module 7. Backup and Recovery

VMware vsphere Data Protection 5.8 TECHNICAL OVERVIEW REVISED AUGUST 2014

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

Oracle Database 11g: Administration Workshop II Release 2

SQL-BackTrack the Smart DBA s Power Tool for Backup and Recovery

Surround SCM Backup and Disaster Recovery Solutions

Oracle Recovery Manager 10g. An Oracle White Paper November 2003

How To Backup And Restore A Database With A Powervault Backup And Powervaults Backup Software On A Poweredge Powervalt Backup On A Netvault 2.5 (Powervault) Powervast Backup On An Uniden Power

Protecting Microsoft SQL Server with Asigra Cloud Backup

VMware vsphere Data Protection 6.0

Near-Instant Oracle Cloning with Syncsort AdvancedClient Technologies White Paper

ORACLE CORE DBA ONLINE TRAINING

MySQL Enterprise Backup

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

Backup/Recovery Strategy and Impact on Applications. Jacek Wojcieszuk, CERN IT Database Deployment and Persistancy Workshop October, 2005

The Future of PostgreSQL High Availability Robert Hodges - Continuent, Inc. Simon Riggs - 2ndQuadrant

Oracle Backup & Recovery

Oracle Database 11g: New Features for Administrators DBA Release 2

SEP sesam Online/Hot Backup & Restore for Databases and Application Protection

Oracle Fixed Scope Services Definitions Effective Date: October 14, 2011

EISOO AnyBackup 5.1. Detailed Features

Database Backup and Restore Mechanism. Presented by : Mary Meladath

EMC DATA DOMAIN OPERATING SYSTEM

DocAve 6 Service Pack 1 Platform Backup and Restore

VMware vsphere Data Protection 6.1

Using Symantec NetBackup with Symantec Security Information Manager 4.5

Scala InfoChannel Content Manager 5 Backup and Restore Instructions

Redefining Oracle Database Management

High Availability Databases based on Oracle 10g RAC on Linux

Centralized Disaster Recovery using RDS

Exhibit to Data Center Services Service Component Provider Master Services Agreement

Symantec NetBackup 7.5 Clients and Agents

White Paper. Alfresco Backup and Disaster Recovery

EMC Data Domain Boost for Oracle Recovery Manager (RMAN)

Backup and Recovery FAQs

CA ARCserve Backup for Windows

for QSS/OASIS Presented by Bill Genske Session 135

Backup and Recovery. What Backup, Recovery, and Disaster Recovery Mean to Your SQL Anywhere Databases

Ultimate Guide to Oracle Storage

Version: Page 1 of 5

COURCE TITLE DURATION. Oracle Database 11g: Administration Workshop I

Training on Linux System Administration, LPI Certification Level 1

EDB Backup and Recovery Tool Guide

Implementing an Enterprise Class Database Backup and Recovery Plan

Using the NDMP File Service for DMA- Driven Replication for Disaster Recovery. Hugo Patterson

Objectif. Participant. Prérequis. Pédagogie. Oracle Database 11g - New Features for Administrators Release 2. 5 Jours [35 Heures]

Configuring Backup Settings Configuring and Managing Persistent Settings for RMAN Configuring Autobackup of Control File Backup optimization

FileCruiser Backup & Restoring Guide

Online Backup Plus Frequently Asked Questions

Symantec NetBackup 5000 Appliance Series

Modification after decommission of AX100 SAN (RVN00-FILEDR) /3/2009 Deputy IT Operations Manager

Monitoring PostgreSQL database with Verax NMS

Get Success in Passing Your Certification Exam at first attempt!

UPSTREAM for Linux on System z

Implementing Offline Digital Video Storage using XenData Software

Symantec Backup Exec 2014 Icon List

Whitepaper - Disaster Recovery with StepWise

15 Organisation/ICT/02/01/15 Back- up

Oracle Database 11g: Administration Workshop I Release 2

Backup and Restore with 3 rd Party Applications

Protecting your SQL database with Hybrid Cloud Backup and Recovery. Session Code CL02

Trends in Application Recovery. Andreas Schwegmann, HP

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

Best practices for operational excellence (SharePoint Server 2010)

TRANSFORMING DATA PROTECTION

Transcription:

GABRIELE BARTOLINI PostgreSQL Sessions - Paris, 4 October 2012

GABRIELE BARTOLINI Co-Founder and Manager of 2ndQuadrant Italia Data Architect, Business critical environments Data warehousing Co-Founder Italian PostgreSQL Users Group Co-Founder PostgreSQL Europe PostgreSQL Contributor and Advocate

INGRES Database French Painter Now 19th century

BARTOLINI Myself Italian Sculptor Now, here 19th century (same family tree)

1799 PARIS BARTOLINI INGRES 2012 PARIS BARTOLINI POSTGRES

DISCLAIMER This talk assumes you are familiar with disaster recovery concepts and PostgreSQL implementation of Point In Time Recovery

BE AWARE In 2ndQuadrant, all these concepts usually fit in a 2 day workshop on Disaster Recovery and a 1 day workshop on Barman alone

MENU D'AUJOURD'HUI Business continuity / Disaster recovery for databases Disaster recovery with Barman for PostgreSQL

PART I Business continuity / Disaster recovery for databases

BUSINESS CONTINUITY activity performed by an organization to ensure that critical business functions will be available to customers, suppliers, regulators, and other entities that must have access to those functions - Wikipedia

INFORMATION TECHNOLOGY Business continuity High availability Disaster recovery

LAW REQUIREMENTS In Italy, the Codice dell Amministrazione Digitale defines business continuity requirements for public administrations

DISASTER (touch wood) system/hardware failures accidental errors disaster

REACT TO A DISASTER Recover systems, data and infrastructures

TOO LATE! Do not wait for a disaster to happen

PLAN FOR DISASTERS Disasters will happen. Be prepared.

Plans are worthless, but planning is everything. There is a very great distinction because when you are planning for an emergency you must start with this one thing: the very definition of "emergency" is that it is unexpected, therefore it is not going to happen the way you are planning. - Dwight D. Eisenhower

REGULAR CRASH TESTS

DATABASE DISASTER RECOVERY Let s just focus on databases!

REQUIREMENTS Automated backups Notifications (anomalies) Frequency of backups Retention policies Data protection Availability for recovery

POSTGRES BACKUP Hot backup MVCC Logical Backup Physical Backup Full backup (base backup) Differential backup (WAL) pg_dump

TRADITIONAL DR WITH POSTGRESQL PostgreSQL primitives for DR are robust and reliable High level skills DBA Sysadmins Custom scripts Hard to integrate in: Backup solutions Disaster Recovery plans Hard to test!

EXISTING TOOLS Omni-PITR WAL centric WALmgr WAL centric WAL-E EC2 centric, but... good came later pg-rman Server centric

NONE FOR DR None of them was a pure disaster recovery solution. We wanted something similar to Oracle s RMAN.

FILLING A HOLE The lack of a DR solution is a barrier towards the adoption of PostgreSQL from Oracle users point of view.

DESIDERATA Hot, Full, Differential and incremental backups Multiple servers Remote backup & recovery Backup catalogues Retention policies Archival and compression WAL segments Periodical backups Automation Integration Usability

WWW.PGBARMAN.ORG

PART II Disaster recovery with Barman for PostgreSQL

BARMAN GNU GPL 3 Hosted on Sourceforge.net Python 2.6/2.7 Debian package (soon) Designed, developed, maintained by 2ndQuadrant PostgreSQL 8.4, 9.0, 9.1, 9.2 PyPI package RPM package

Postgres Postgres Postgres Barman tape Barman LAN, hybrid centralised architecture

Postgres Continuous archiving (WAL shipping via SSH) SSH commands SQL commands Barman

Postgres Barman WAL secure channel cron Barman s WAL archive

Postgres Periodical backup (weekly) Differential backup Backup catalogue Barman Full backup - Sat 1, 4AM Full backup - Sat 8, 4AM Full backup - Sat 15, 4AM Full backup - Sat 22, 4AM

CONVENTION OVER CONFIGURATION global/per server options default directory layout

CONFIGURATION FILE [barman] barman_home = /srv/barman barman_user = barman log_file = /var/log/barman/barman.log log_level = NOTICE compression = gzip [production] description = Production PostgreSQL ssh_command = ssh pg.2ndquadrant.it conninfo = host=pg.2ndquadrant.it user=postgres compression = bzip2

CONVENTIONAL DIRECTORIES FOR BARMAN barman_home (/srv/barman) server directory (/srv/barman/production) base directory (/srv/barman/production/base) WAL directory (/srv/barman/production/wals) incoming directory (/srv/barman/production/incoming)

MULTI-SERVER CONFIGURATION [barman] ; General configuration ; [server_one] ; Configuration for Server 1 ; [server_two] ; Configuration for Server 2 ; [server_x] ;

GLOBAL COMMANDS List of managed servers barman list-server Maintenance operations barman cron

SERVER COMMANDS Information and diagnostics barman status Backup control Recovery control barman check barman show-server barman list-backup

BACKUP CONTROL barman backup barman show-backup barman list-files standalone, data, wal, full barman delete

SHOW BACKUP General Server name, Postgres version, status,... Base backup Start/End time, first/last WAL, disk usage,... WAL Number of associated files disk usage Context Previous/Next backup

RECOVERY CONTROL Recovery target (full / point in time) Local recovery barman recover Remote recovery barman recover --remote-ssh-command

ADVANCED RECOVERY Point In Time Recovery --target-time = TIME --target-xid = XID Relocation of tablespaces --tablespace NAME:LOCATION [...]

COMMON USE CASES Accidental errors recovery Disaster recovery Sandbox server (BI, staging,...)

SPONSOR A FEATURE! Retention policies Sandbox recovery Replication protocol support (client / server) Incremental backup reduce backup time and size

RETENTION POLICY CONFIGURATION ; Base backup retention policy retention_policy = 'redundancy 3' retention_policy = 'recovery window of 30 days' ; WAL retention policy wal_retention_policy = 'base' ; wal_retention_policy = 'recovery window of 14 days'

OUR COMMITMENT Keep it open source Reinvest money from sale of DR turnkey solutions in R&D Support and maintain RPM/Debian packages Accept sponsorships for new features development

CONCLUSIONS Hides complexity of PITR / Keeps unaltered PITR strenghts Not invasive Fosters migrations from Oracle Standard de facto for PostgreSQL Disaster Recovery Advice: plan for DR (if you have not done it yet)

QUESTIONS? Gabriele.Bartolini@2ndQuadrant.it Twitter: _GBartolini_ www.pgbarman.org

MERCI BEAUCOUP!

LICENSE This work is licensed under a Creative Commons Attribution- NonCommercial-ShareAlike 3.0 Unported License Copyright (c) 2012-2ndQuadrant.it