Make the script executable
[backups/.git] / scripts / drive.sh
1 #!/bin/bash
2
3 scriptsdir=$(dirname $0)
4 bindir="$scriptsdir/../build"
5
6 datadir="/var/lib/backups"
7 tmpdir="/var/tmp"
8
9 export PATH=$scriptsdir:$bindir:$PATH
10
11 files=$tmpdir/files.db
12 touch $files
13 chmod 700 $files
14 find-cmd.sh /home > $files
15
16 backups=$tmpdir/backup-list.db
17 statusfile=$tmpdir/backup-status.txt
18
19 cat $files | lsbackups > $backups 2>$statusfile