DB backups handler
Project description
PyDBBackups
A backup handler
Installation
pip install pydbbackups
CLI example
dbbackups run \
--name backup-example \
--database-type postgres \
--host localhost \
--database test \
--username postgres \
--port 5432
# backup-example___2023-04-10 11:42:59.090131 Created !
Code example
from pydbbackups import Postgres
cls = Postgres(
name="MyDB",
compress=False,
database="test",
host="localhost",
port=5432,
username="postgres",
password="postgres"
)
# In some cases dump method, return None
# Like MongoDB
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.0.3.tar.gz
(6.1 kB
view hashes)
Built Distribution
Close
Hashes for pydbbackups-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36f003fca2db36d7cfbc13b665bc1afabe2e0cb4658b3fe8c1833d67a01cee45 |
|
MD5 | b73a218848ed690ad1e9729878c7657a |
|
BLAKE2b-256 | 4fb8ce9411d43c613fa5518ad34a68d9853e89800c9b412fb3f59505593865d0 |