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
# 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.4.tar.gz
(6.2 kB
view hashes)
Built Distribution
Close
Hashes for pydbbackups-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 35eaa287925d5f62ca5b30eac7d9adb83d7fadef399c44a7322b83324bdc0794 |
|
MD5 | 929dcb1edf67c860d689636b16542bef |
|
BLAKE2b-256 | 7684a4b88bf35a4d7331e4f0134e7250df636a92ea7ede000f66a132b58c93ef |