From: Carl Baldwin Date: Sun, 23 Oct 2005 02:32:10 +0000 (-0600) Subject: First cut at top-level script X-Git-Tag: release-0.4~78 X-Git-Url: http://git.pippins.net/embedvideo/.git/%22%22.%24thumbnail.%22/%7Blink_visit%7D?a=commitdiff_plain;h=cd4bc2f776c2d2f28f3ec62744d213bb7dcad209;p=backups%2F.git First cut at top-level script --- diff --git a/scripts/drive.sh b/scripts/drive.sh new file mode 100644 index 0000000..9b3d02b --- /dev/null +++ b/scripts/drive.sh @@ -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