DB backups handler
Project description
PyDBBackups
A backup handler
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.1.tar.gz
(5.2 kB
view hashes)
Built Distribution
Close
Hashes for pydbbackups-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 09d3723e3a24eb98744de387837c09698f9d2df7e8930e4f5fcad83adaf748e8 |
|
MD5 | 160706f66b37c968c28eb111d2bd3648 |
|
BLAKE2b-256 | f739f6108cd02d5d9d69e9043fd82484082d2a7511f1f3b631f9ae4dcde72fd4 |