Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zeha/pacid
PostgreSQL Awesome Consisteny and Integrity Differ (think pg_rancid)
https://github.com/zeha/pacid
Last synced: 24 days ago
JSON representation
PostgreSQL Awesome Consisteny and Integrity Differ (think pg_rancid)
- Host: GitHub
- URL: https://github.com/zeha/pacid
- Owner: zeha
- Created: 2013-08-01T19:36:40.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2023-12-11T20:57:52.000Z (11 months ago)
- Last Synced: 2024-04-21T02:19:26.161Z (7 months ago)
- Language: Python
- Homepage:
- Size: 5.86 KB
- Stars: 4
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
PACID
-----Dumps a PostgreSQL database schema and splits the dump into single files for easy diffing.
A git commit is created automatically as well.
If you know how the "RANCID" software operates, this follows the same model.
Setup:
------```sh
git init out
```---
With PostgreSQL <= 9.2, to get nicely formatted view definitions:
```sh
./patch-pg_dump/patch.sh
```Note that the `patch.sh` script makes an assumption about the PostgreSQL version and the location of the pg_dump binary.
Run:
----One shot example:
```sh
PATH=.:$PATH PGUSER=user PGDATABASE=database PGPASSWORD=password PGHOST=host ./pacid dest-dir
```Best put that into a cronjob, like this:
```sh
@daily PATH=.:$PATH PGUSER=user PGDATABASE=database PGPASSWORD=password PGHOST=host ./pacid dest-dir && git push -q
```