chiark / gitweb /
Found on davenant in /usr/local/lib (in use on anarres).
[chiark-utils.git] / backup / junk
1
2
3 timestamp () {
4         echo "Checking timestamp of last full dump of $1;"
5         if ! test lfull.$which -ot lfull.$1
6         then
7                 which=$1
8         fi
9 }
10
11 ok=1
12
13 for dsk in `cat allincs`
14 do
15         which='.'
16         . inc.$dsk
17         if test -f "lfull.$which"
18         then
19                 echo "Using timestamp of last full dump of $which."
20         else
21                 echo >&2 "No full dump of $which done yet."
22                 exit 1
23         fi
24
25         since="`cat lfull.$which`"
26         doing="incremental of $filesys to $device
27  files changed since dump of $which at `cat lfull.$which`"
28
29         rm -f log
30         (umask 007; >log)
31
32         echo Doing "$doing" ...
33
34