@@ -15,10 +15,12 @@ $ make
# chmod 1777 /srv/xen-devel-bugs/var/lock
# mkdir /srv/xen-devel-bugs/var/raw /srv/xen-devel-bugs/var/run \
- /srv/xen-devel-bugs/var/spool/ /srv/xen-devel-bugs/var/spool/incoming
+ /srv/xen-devel-bugs/var/spool/ /srv/xen-devel-bugs/var/spool/incoming \
+ /srv/xen-devel-bugs/var/backups
# chown xen-devel-bugs:xen-devel-bugs \
/srv/xen-devel-bugs/var/raw /srv/xen-devel-bugs/var/run \
- /srv/xen-devel-bugs/var/spool/ /srv/xen-devel-bugs/var/spool/incoming
+ /srv/xen-devel-bugs/var/spool/ /srv/xen-devel-bugs/var/spool/incoming \
+ /srv/xen-devel-bugs/var/backups
# cp config/examples/xen-bugs.xenproject.org/emesinae.conf /srv/xen-devel-bugs/etc/
@@ -91,8 +93,8 @@ cron Configuration
==================
# mkdir /srv/xen-devel-bugs/var/log
-# touch /srv/xen-devel-bugs/var/log/queuerunner.log
-# chown xen-devel-bugs:xen-devel-bugs /srv/xen-devel-bugs/var/log/queuerunner.log
+# touch /srv/xen-devel-bugs/var/log/{backups,queuerunner}.log
+# chown xen-devel-bugs:xen-devel-bugs /srv/xen-devel-bugs/var/log/{backups,queuerunner}.log
# crontab -e -u xen-devel-bugs
8<-----------------------------
@@ -100,5 +102,9 @@ SHELL=/bin/sh
# Process queue every 15 minutes
*/15 * * * * /usr/bin/env PERLLIB=/srv/xen-devel-bugs/share/perl/5.14.2/ /srv/xen-devel-bugs/lib/emesinae/queuerunner.pl >>/srv/xen-devel-bugs/var/log/queuerunner.log
+
+# Backup everyday at 2:07 ready for offsite backup by Citrix (run at 3:30 am)
+7 2 * * * /usr/bin/env PERLLIB=/srv/xen-devel-bugs/share/perl/5.14.2/ /srv/xen-devel-bugs/lib/emesinae/sqlite_backup.pl >>/srv/xen-devel-bugs/var/log/backups.log
+
8<-----------------------------
@@ -72,3 +72,6 @@ $c{ControlBlacklistPath} = "/srv/xen-devel-bugs/etc/control.blacklist";
# Severity levels, in decending order of criticality
@{ $c{SeverityLevels} } = qw/blocker critical normal wishlist/;
$c{DefaultSeverity} = "normal";
+
+# Backup configuration
+$c{BackupDir} = "/srv/xen-devel-bugs/var/backups/";