Skip to content
/ pacid Public

PostgreSQL Awesome Consisteny and Integrity Differ (think pg_rancid)

Notifications You must be signed in to change notification settings

zeha/pacid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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:

git init out

With PostgreSQL <= 9.2, to get nicely formatted view definitions:

./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:

PATH=.:$PATH PGUSER=user PGDATABASE=database PGPASSWORD=password PGHOST=host ./pacid dest-dir

Best put that into a cronjob, like this:

@daily PATH=.:$PATH PGUSER=user PGDATABASE=database PGPASSWORD=password PGHOST=host ./pacid dest-dir && git push -q

About

PostgreSQL Awesome Consisteny and Integrity Differ (think pg_rancid)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published