Skip to main content

Automation of the creation of backups of Postgres databases

Project description

Backup Postgres Database

Downloads Version Python-Version issues PyPI - Status License

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


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 hashes)

Uploaded Source

Built Distribution

postgres_backup-0.0.2-py3-none-any.whl (4.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page