Bump the revision number
[backups/.git] / scripts / config.sh
index 4dc43508c91214cc9238b77bda52656c2a5dd886..040da1f18622cb7ee3bfbe81b1ecd0f04f80ee44 100755 (executable)
@@ -3,15 +3,28 @@
 mailto='carl@ecbaldwin.net'
 datadir="/var/lib/backups"
 tmpdir="/dev/shm/backups"
+imagedir="/backup/imgs"
 currentfiles="$tmpdir/files.db"
-backupdb="$datadir/backups.db"
 backups="$tmpdir/backup-list.db"
-statusfile="$tmpdir/backup-status.txt"
-imagedir="/backup/imgs"
+statusfile="$imagedir/backup-status.txt"
 lastbackupfile="$imagedir/lastbackup"
 dev="/dev/dvdrw"
 sdev="ATA:1,0,0"
-burnlockfile="$imagedir/noburn"
+noburnfile="$imagedir/noburn"
+backupeveryXdays=15
+makeXcopies=2
+cdrecord="cdrecord-wrapper.sh"
+cdrecordopts="-v -dao"
+cronstopstart="/etc/init.d/cron"
+cacheburnimg=0
+cacheburnimgdir="/tmp"
+
+# These are exported so lsbackups can have access to them
+export backupdbin="$datadir/backups.db"
+export backupdbout="$datadir/backups.db.tmp"
+export imagesizemb=4440
+export availsizemb=4096
+export blocksize=2048
 
 backupdirs="
 /etc
@@ -23,3 +36,10 @@ backupdirs="
 /var/lib/iptables
 /var/lib/mailman
 "
+
+excludedirs=""
+
+function err() {
+  echo 2>&1 "-E- $1"
+  exit 1
+}