Make the cdrecord command configurable
[backups/.git] / scripts / config.sh
1 #!/bin/echo This file should be sourced .
2
3 mailto='carl@ecbaldwin.net'
4 datadir="/var/lib/backups"
5 tmpdir="/dev/shm/backups"
6 imagedir="/backup/imgs"
7 currentfiles="$tmpdir/files.db"
8 backups="$tmpdir/backup-list.db"
9 statusfile="$imagedir/backup-status.txt"
10 lastbackupfile="$imagedir/lastbackup"
11 dev="/dev/dvdrw"
12 sdev="ATA:1,0,0"
13 noburnfile="$imagedir/noburn"
14 backupeveryXdays=15
15 makeXcopies=2
16 cdrecord="cdrecord-wrapper.sh"
17 cdrecordopts="-v -dao"
18 cronstopstart="/etc/init.d/cron"
19 cacheburnimg=0
20 cacheburnimgdir="/tmp"
21
22 # These are exported so lsbackups can have access to them
23 export backupdbin="$datadir/backups.db"
24 export backupdbout="$datadir/backups.db.tmp"
25 export imagesizemb=4440
26 export availsizemb=4096
27 export blocksize=2048
28
29 backupdirs="
30 /etc
31 /home
32 /var/backups
33 /var/lib/debfoster
34 /var/lib/dpkg
35 /var/lib/ip6tables
36 /var/lib/iptables
37 /var/lib/mailman
38 "
39
40 excludedirs=""
41
42 function err() {
43   echo 2>&1 "-E- $1"
44   exit 1
45 }