Index: trunk/packages/xvm-db-backup/debian/changelog
===================================================================
--- trunk/packages/xvm-db-backup/debian/changelog	(revision 2535)
+++ trunk/packages/xvm-db-backup/debian/changelog	(revision 2536)
@@ -1,2 +1,9 @@
+xvm-db-backup (0.0.6) unstable; urgency=low
+
+  * Let the config file specify a list of tables to exclude from the
+    backup.
+
+ -- Evan Broder <broder@mit.edu>  Mon, 26 Oct 2009 10:14:47 -0400
+
 xvm-db-backup (0.0.5) unstable; urgency=low
 
Index: trunk/packages/xvm-db-backup/xvm-db-backup
===================================================================
--- trunk/packages/xvm-db-backup/xvm-db-backup	(revision 2535)
+++ trunk/packages/xvm-db-backup/xvm-db-backup	(revision 2536)
@@ -9,6 +9,13 @@
 mkdir -p "$(dirname $db_filename)"
 
+exclude=()
+if invirt-getconf db.backup_exclude &>/dev/null; then
+    for i in invirt-getconf -l db.backup_exclude; do
+	exclude=("${exclude[@]}" -T "$(invirt-getconf "db.backup_exclude.$i")")
+    done
+fi
 /usr/bin/pg_dump -U "$(invirt-getconf db.user)" \
                  -h "$(invirt-getconf db.host)" \
+                 "${exclude[@]}" \
                  "$(invirt-getconf db.dbname)" | gzip - >"$db_filename"
 
