Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jaymon/dump
Python wrapper around psql and pg_dump to make it easier to backup/restore a PostgreSQL database
https://github.com/jaymon/dump
backup cli database pg-dump postgres postgresql postgresql-database psql python restore
Last synced: 28 days ago
JSON representation
Python wrapper around psql and pg_dump to make it easier to backup/restore a PostgreSQL database
- Host: GitHub
- URL: https://github.com/jaymon/dump
- Owner: Jaymon
- License: mit
- Created: 2015-02-26T03:19:49.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-11-15T07:23:14.000Z (almost 6 years ago)
- Last Synced: 2024-10-11T09:40:14.618Z (28 days ago)
- Topics: backup, cli, database, pg-dump, postgres, postgresql, postgresql-database, psql, python, restore
- Language: Python
- Size: 17.6 KB
- Stars: 14
- Watchers: 4
- Forks: 3
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Dump
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