Giter Club home page Giter Club logo

softwarebrahma / postgresql-disaster-recovery-with-barman Goto Github PK

View Code? Open in Web Editor NEW
22.0 1.0 5.0 16 KB

A complete end-end project that demonstrates the 'Traditional backup with WAL streaming' architecture implementation (Backup via rsync/SSH + WAL streaming). This is chosen as it provides incremental backup/restore & a bunch of other features.

License: Apache License 2.0

Dockerfile 57.25% Shell 42.75%
postgresql postgresql-backup postgresql-tool barman docker dockerfiles docker-compose disaster-recovery

postgresql-disaster-recovery-with-barman's Introduction

PostgreSQL-Disaster-Recovery-With-Barman

A complete end-end project that demonstrates PostgreSQL Disaster Recovery.

The project demonstrates the solution using Barman (Backup and Recovery Manager), an open-source administration tool for disaster recovery of PostgreSQL servers.

The solution architecture chosen here is a 'Traditional backup with WAL streaming' architecture implementation (Backup via rsync/SSH + WAL streaming). This is chosen as it provides incremental backup/restore & a bunch of other features. More details can be found at http://www.pgbarman.org/.

About the project:

The project demonstrates a working docker setup involving PostgreSQL and Barman docker containers.

The setup actually consists of two pairs of PostgreSQL & Barman docker containers (each in their own docker network) to represent the Primary & Standby. The PostgreSQL database in the Primary is incrementally backed up in a nightly schedule & is restored remotely in the Standby.

To use this project, please start with the setup.sh file under setup folder & make changes as needed or run as is. This assumes a standard debian linux host with docker/docker-compose already installed & ready for use.

To build one would use the standard command 'docker-compose -f docker-compose.yml build' & to run again the standard command, 'docker-compose -f docker-compose.yml up -d'.

Please use populate_primary_db.sql under setup folder to populate the PostgreSQL database in Primary.

Note that this is just a basic demonstratation of the Disaster Recovery Functionality where things like security & other considerations are not in focus. Any use of this therefore is intended only as a quick guide for the aforementioned demonstratation purpose.

postgresql-disaster-recovery-with-barman's People

Contributors

softwarebrahma avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.