First cut at top-level script
authorCarl Baldwin <cnb@ball.(none)>
Sun, 23 Oct 2005 02:32:10 +0000 (20:32 -0600)
committerCarl Baldwin <cnb@ball.(none)>
Sun, 23 Oct 2005 02:32:10 +0000 (20:32 -0600)
scripts/drive.sh [new file with mode: 0644]

diff --git a/scripts/drive.sh b/scripts/drive.sh
new file mode 100644 (file)
index 0000000..9b3d02b
--- /dev/null
@@ -0,0 +1,19 @@
+#!/bin/bash
+
+scriptsdir=$(dirname $0)
+bindir="$scriptsdir/../build"
+
+datadir="/var/lib/backups"
+tmpdir="/var/tmp"
+
+export PATH=$scriptsdir:$bindir:$PATH
+
+files=$tmpdir/files.db
+touch $files
+chmod 700 $files
+find-cmd.sh /home > $files
+
+backups=$tmpdir/backup-list.db
+statusfile=$tmpdir/backup-status.txt
+
+cat $files | lsbackups > $backups 2>$statusfile