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

Uploaded Source

Built Distribution

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

Uploaded Python 3

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

Hashes for postgres-backup-0.0.2.tar.gz
Algorithm Hash digest
SHA256 6e1314c01203c5eb1cc7a8a34785716dc92787dbae46b685ed768210af930802
MD5 054b52ebcc8459724fe4dd1ecae34872
BLAKE2b-256 c289996b292b535e1e058a8afa0c640b9f16d96f943fb0d74231eee34dac98d2

See more details on using hashes here.

File details

Details for the file postgres_backup-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for postgres_backup-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d7f0d49e09aa9db030f6cbcfefc3b6072034bfd34009620705429426bb4549a8
MD5 47077788b6afeeef9ca061c4ce2cddd7
BLAKE2b-256 91fb882616bd79c4d08e4dd744d96e9b91bc1e43b5eebcd17b5740b88711fffa

See more details on using hashes here.

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