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.1.tar.gz
(8.3 kB
view hashes)
Built Distribution
Close
Hashes for pydbbackups-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa24b459dbd3d0bf7ee4b42c7dc4f5020e8a895d9cdefbf1491f6e88227f1a00 |
|
MD5 | e7a032cafd1bd7c02793e6030fdd7ef5 |
|
BLAKE2b-256 | 0c6cc4569338f5849bbef53815ff4181d6479f04a9535a97aba04a1ad2b7cd81 |