projects
/
backups
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
87ba58c
)
First cut at top-level script
author
Carl Baldwin
<cnb@ball.(none)>
Sun, 23 Oct 2005 02:32:10 +0000
(20:32 -0600)
committer
Carl Baldwin
<cnb@ball.(none)>
Sun, 23 Oct 2005 02:32:10 +0000
(20:32 -0600)
scripts/drive.sh
[new file with mode: 0644]
patch
|
blob
diff --git a/scripts/drive.sh
b/scripts/drive.sh
new file mode 100644
(file)
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