Further parameterization of the burn-image.sh script.
[backups/.git] / scripts / config.sh
index c3b4a26a7a7b1fa8a164a85edec1fbb197f9cfc5..22aae1a730317f0cd219e2b7acb874de74f0c567 100755 (executable)
@@ -5,13 +5,23 @@ 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="$imagedir/backup-status.txt"
 lastbackupfile="$imagedir/lastbackup"
 dev="/dev/dvdrw"
 sdev="ATA:1,0,0"
 noburnfile="$imagedir/noburn"
+backupeveryXdays=15
+makeXcopies=2
+cdrecordopts="-v -dao" 
+cronstopstart="/etc/init.d/cron"
+
+# 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
@@ -24,8 +34,7 @@ backupdirs="
 /var/lib/mailman
 "
 
-excludedirs="
-"
+excludedirs=""
 
 function err() {
   echo 2>&1 "-E- $1"