Added support for new cacheburnimg directive that will cache a burn image from the...
[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 cdrecordopts="-v -dao" 
17 cronstopstart="/etc/init.d/cron"
18 cacheburnimg=0
19 cacheburnimgdir="/tmp"
20
21 # These are exported so lsbackups can have access to them
22 export backupdbin="$datadir/backups.db"
23 export backupdbout="$datadir/backups.db.tmp"
24 export imagesizemb=4440
25 export availsizemb=4096
26 export blocksize=2048
27
28 backupdirs="
29 /etc
30 /home
31 /var/backups
32 /var/lib/debfoster
33 /var/lib/dpkg
34 /var/lib/ip6tables
35 /var/lib/iptables
36 /var/lib/mailman
37 "
38
39 excludedirs=""
40
41 function err() {
42   echo 2>&1 "-E- $1"
43   exit 1
44 }