chiark / gitweb /
Found on davenant in /usr/local/lib (in use on anarres).
[chiark-utils.git] / backup / junk
diff --git a/backup/junk b/backup/junk
new file mode 100644 (file)
index 0000000..92769e4
--- /dev/null
@@ -0,0 +1,34 @@
+
+
+timestamp () {
+       echo "Checking timestamp of last full dump of $1;"
+       if ! test lfull.$which -ot lfull.$1
+       then
+               which=$1
+       fi
+}
+
+ok=1
+
+for dsk in `cat allincs`
+do
+       which='.'
+       . inc.$dsk
+       if test -f "lfull.$which"
+       then
+               echo "Using timestamp of last full dump of $which."
+       else
+               echo >&2 "No full dump of $which done yet."
+               exit 1
+       fi
+
+       since="`cat lfull.$which`"
+       doing="incremental of $filesys to $device
+ files changed since dump of $which at `cat lfull.$which`"
+
+       rm -f log
+       (umask 007; >log)
+
+       echo Doing "$doing" ...
+
+