Wrapper around psql and pg_dump to make it easier to backup/restore a PostgreSQL database
Project description
Python wrapper around psql and pg_dump to make it easier to backup/restore a PostgreSQL database.
Backup
You backup per table:
$ dump backup --dbname=... --username=... --password=... --dir=/some/base/path table1 table2 ...
Restore
You can restore the entire backup directory:
$ dump restore --dbname=... --username=... --password=... --dir=/some/base/path
Install
Use pip:
$ pip install dump
to install the latest and greatest:
$ pip install --upgrade git+https://github.com/Jaymon/dump#egg=dump
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
dump-0.0.5.tar.gz
(6.2 kB
view details)
File details
Details for the file dump-0.0.5.tar.gz.
File metadata
- Download URL: dump-0.0.5.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/2.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7818429bb03a9fe826af18af2d6f0be0db9d9c65518accff04295f501dc620c9
|
|
| MD5 |
a0a4403b6b8d588c423f81416b9e5116
|
|
| BLAKE2b-256 |
40efe152e22adadea9b37e52614482bf8cf5cef14336966457cc1d892d049e2a
|