]> git.donarmstrong.com Git - wannabuild.git/blobdiff - trigger.daily
Expire old dump files.
[wannabuild.git] / trigger.daily
index 6cf74228e61b8909bccfa9ec661dc9cedb4f32cc..0926de133362ae03a5b6b56624dc1c57f8160ba0 100755 (executable)
@@ -222,6 +222,8 @@ echo "merge ended: `date`"
 
 sudo -u postgres /usr/bin/pg_dumpall --cluster 8.4/wanna-build | bzip2 > /org/wanna-build/dumps/dump_post_$(date +%Y.%m.%d-%H:%M:%S).bz2
 
+(cd /org/wanna-build/dumps && /org/wanna-build/expire_dumps -d . -f "dump_*")
+
 #
 # Only update stats if it's been at least 20h since the last time.
 #