ff58479670bc1506ef28292b4e9c757ac2d7060e
[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
15 # These are exported so lsbackups can have access to them
16 export backupdbin="$datadir/backups.db"
17 export backupdbout="$datadir/backups.db.tmp"
18 export imagesizemb=4440
19 export availsizemb=4096
20 export blocksize=2048
21
22 backupdirs="
23 /etc
24 /home
25 /var/backups
26 /var/lib/debfoster
27 /var/lib/dpkg
28 /var/lib/ip6tables
29 /var/lib/iptables
30 /var/lib/mailman
31 "
32
33 excludedirs="
34 "
35
36 function err() {
37   echo 2>&1 "-E- $1"
38   exit 1
39 }