Giter VIP home page Giter VIP logo

pg_back's Introduction

pg_back is a simple backup script for PostgreSQL.

FEATURES
--------

pg_back uses pg_dumpall to dump roles and tablespaces, pg_dump to dump
each selected database to a separate file. The custom format of
pg_dump is used by default.

A configuration file, by default /etc/postgresql/pg_back.conf, can
hold the configuration to automate the backup. All options can be
overridden on the command line.

Databases to dump can be specified in the configuration file or on the
command line.  A list of databases can also be excluded. Database
templates can be included, with the exception of template0, because
connection to it are forbidden by default.

The purpose of the script is to allow unattended backups, thus a purge
time can be configured to avoid running out of disk space in the
backup directory. It is set to 30 days by default. A minimum number of backups
can also be kept.

If running on a standby database, il will pause replication for the duration of
the dump.

The script is working out of the box, but you should consider editing
it to fit your needs. This is why I want to keep it the simplest
possible.


USAGE
-----

It is best to run it as the postgres user. For example :

    pg_back -b /var/lib/pgsql/9.3/backups

See the help with pg_back -?.


DEVELOPMENT
-----------

The source code is available on github:

https://github.com/orgrim/pg_back

pg_back is developped by Nicolas Thauvin <[email protected]> under a
classic 2 clauses BSD license. See license block in the script.

pg_back's People

Contributors

orgrim avatar bersace avatar ng-pe avatar pdeffendol avatar nadgerz avatar marco44 avatar

Watchers

Didier BONNEFOI 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.