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.2.tar.gz
(5.4 kB
view hashes)
Built Distribution
Close
Hashes for pydbbackups-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 11531f7d50c507c0566ffebd374825fbd1cdf9108a3a66773133c06f3bf72eed |
|
MD5 | 0e1b97e8ccbcc0bffa089c2b7e9d943c |
|
BLAKE2b-256 | 03cf876741fe755050469b6e678ad0fe3729da983eba48dde4bd461e9675a0a5 |