This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Creates a dump of the PostgreSQL database. Stores the specified number of dumps, deletes the old dumps.

Project Description

Installation:

pip install inipgdump

Creates a dump of the PostgreSQL database. The naming format of dump:

$host_$dbname_$datetime.dump

Stores the specified number of dumps, deletes the old dumps.

Options to create a dump taken from the configuration file in the following format:

[database]
DATABASE_NAME = your_value
DATABASE_USER = your_value
DATABASE_PASSWORD = your_value
DATABASE_HOST = your_value
DATABASE_PORT = your value

Usage:

(without rotation): inipgdump config_file.ini /dump/dir
(with rotation): inipgdump config_file.ini /dump/dir keep_count

Examples of usage in the cron:

# Daily backup
0 4 2-31 * 0-5 inipgdump /path/to/config_file.ini /dumps/daily 7
# Weekly backup
0 4 2-31 * 6 inipgdump /path/to/config_file.ini /dumps/weekly 8
# Monthly backup
0 4 1 2-12 * inipgdump /path/to/config_file.ini /dumps/monthly 12
# Yearly backup
0 4 1 1 * inipgdump /path/to/config_file.ini /dumps/yearly 10
Release History

Release History

This version
History Node

0.2.2

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
inipgdump-0.2.2.tar.gz (2.6 kB) Copy SHA256 Checksum SHA256 Source Dec 20, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting