Skip to main content

DB backups handler

Project description

PyDBBackups

A backup handler

Installation

pip install pydbbackups

CLI example

dbbackups dump \
    --name backup-example \
    --database-type postgres \
    --host localhost \
    --database test \
    --username postgres \
    --port 5432

# 0__backup-example.sql Created !

Code example

from pydbbackups import Postgres

cls = Postgres(
    database="test",
    host="localhost",
    port=5432,
    username="postgres",
    password="postgres"
)

# In some cases dump method, return None

output = cls.dump()  # Return BytesIO
print(output.read().decode('utf-8'))

@jbuendia1y <jbuendia1y@gmail.com>

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

pydbbackups-0.1.0.tar.gz (7.5 kB view hashes)

Uploaded Source

Built Distribution

pydbbackups-0.1.0-py3-none-any.whl (11.1 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