Automation of the creation of backups of Postgres databases
Project description
Backup Postgres Database
This simple Python package allows you to create easily the database backup of Postgres databases. You can upload them to cloud storage buckets by creating a cron job.
from postgres_backup import Backup
# Instantiate the backup object with Postgres database_uri
backup = Backup(database_uri)
# Create the file for backup
backup.create(out_file='backup.gz')
Note that the URI has the following structure: db:engine:[//[user[:password]@][host][:port]/][dbname]
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
postgres-backup-0.0.2.tar.gz
(3.9 kB
view details)
Built Distribution
File details
Details for the file postgres-backup-0.0.2.tar.gz
.
File metadata
- Download URL: postgres-backup-0.0.2.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e1314c01203c5eb1cc7a8a34785716dc92787dbae46b685ed768210af930802 |
|
MD5 | 054b52ebcc8459724fe4dd1ecae34872 |
|
BLAKE2b-256 | c289996b292b535e1e058a8afa0c640b9f16d96f943fb0d74231eee34dac98d2 |
File details
Details for the file postgres_backup-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: postgres_backup-0.0.2-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d7f0d49e09aa9db030f6cbcfefc3b6072034bfd34009620705429426bb4549a8 |
|
MD5 | 47077788b6afeeef9ca061c4ce2cddd7 |
|
BLAKE2b-256 | 91fb882616bd79c4d08e4dd744d96e9b91bc1e43b5eebcd17b5740b88711fffa |