Giter VIP home page Giter VIP logo

pgbackups's Introduction

pgbackups

Postgresql backup script with rotated backups and optional S3 aws sync

This script let you backup all your postgresql database and save them on your AWS S3 bucket. All you need is a working aws-cli installation and an active bucket and setup the variables on the pg_backup.config.

Configuration

The config file is well documented, keep an eye on the rotated backups sections where you can setup how many days of daily/weekly backups you wanto to keep.

# Which day to take the weekly backup from (1-7 = Monday-Sunday)
DAY_OF_WEEK_TO_KEEP=5
# Number of days to keep daily backups
DAYS_TO_KEEP=7
# How many weeks to keep weekly backups
WEEKS_TO_KEEP=5

For the aws configuration the only things you need to setup is the bucket name

AWS_BUCKET=foo

You can see how to setup a full working aws-cli here: http://docs.aws.amazon.com/cli/latest/userguide/installing.html

pgbackups's People

Contributors

rex79 avatar

Stargazers

Julio Cesar Zuppa avatar

Watchers

 avatar James Cloos avatar

pgbackups's Issues

How about restores?

Hi Roberto! how's going? :-)

I'm very interested in your scripts to backup PG, I did some tests on my machines and it works flawlessy. The scripts are pretty easy to understand, however, I'm a bit worried about restores with the N files it generates for each backup.

Do you plan to release some script to restore them?

What is the supposed way to do a full restore of a PG backup (schemas, data, extensions...)? I could help in writing the restore script ;-)

Thanks in advance, keep up with the good work! ;-)

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.