From: Kurt Roeckx Date: Sun, 13 Sep 2009 12:15:02 +0000 (+0000) Subject: Dump the pgsql database before and after the "daily" trigger. X-Git-Url: https://git.donarmstrong.com/?p=wannabuild.git;a=commitdiff_plain;h=f0766d665b616d3782a81e888e67e3823f60ca00 Dump the pgsql database before and after the "daily" trigger. --- diff --git a/trigger.daily b/trigger.daily index 1ee7824..184bd68 100755 --- a/trigger.daily +++ b/trigger.daily @@ -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. #