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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
inipgdump-0.2.2.tar.gz
(2.6 kB
view details)
File details
Details for the file inipgdump-0.2.2.tar.gz
.
File metadata
- Download URL: inipgdump-0.2.2.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 895e3906469809ccfc94b1fc76dbc246b790a19c91f2d6efab3178f58c050873 |
|
MD5 | 3d3e493da8f4fbff4d04c4e202a34435 |
|
BLAKE2b-256 | 9515d570ed74099ff0dc19e6abb072fbc6254e0e1a90a2b5510745d596af2982 |