]> git.donarmstrong.com Git - wannabuild.git/commitdiff
Dump the pgsql database before and after the "daily" trigger.
authorKurt Roeckx <kurt@roeckx.be>
Sun, 13 Sep 2009 12:15:02 +0000 (12:15 +0000)
committerKurt Roeckx <kurt@roeckx.be>
Sun, 13 Sep 2009 12:15:02 +0000 (12:15 +0000)
trigger.daily

index 1ee7824dd44ba487915e26d93d1cbab5fad5a4cc..184bd681b5507fb28aa0c7d9be73a4956b89ba3a 100755 (executable)
@@ -38,6 +38,9 @@ cleanup() {
 }
 trap cleanup 0
 
+echo Dumping wanna-build databases...
+pg_dump service=wanna-build-privileged | bzip2 > /org/wanna-build/dumps/dump_pre_$(date +%Y.%m.%d-%H:%M:%S).bz2
+
 echo Updating wanna-build databases...
 umask 027
 
@@ -216,6 +219,9 @@ for d in $DISTS; do
 done
 
 echo "merge ended: `date`"
+
+pg_dump service=wanna-build-privileged | bzip2 > /org/wanna-build/dumps/dump_post_$(date +%Y.%m.%d-%H:%M:%S).bz2
+
 #
 # Only update stats if it's been at least 20h since the last time.
 #