BACKUP
======
-essential before release
-------------------------
-test
-
would be nice someday
---------------------
replace loaded with idformat
read/writebuffer setuid --mlock
-whatisthis no cloneandhack
-whatisthis listing for zafio and dump archives
+whatsthis no cloneandhack
+whatsthis listing for zafio and dump archives
configuration files autogenerator
RWBUFFER_SIZE_MB=16
prefix=/usr/local
-etcdir=/etc/chiark-backup
+etcdir=/etc
+varlib=/var/lib
+
+confdir=$(etcdir)/chiark-backup
bindir=$(prefix)/bin
sharedir=$(prefix)/share/chiark-backup
-txtdocdir=$(prefix)/share/doc/chiark-backup/examples
+txtdocdir=$(prefix)/share/doc/chiark-backup
exampledir=$(txtdocdir)/examples
+vardir=$(varlib)/chiark-backup
INSTALL= install -c
INSTALL_SHARE= $(INSTALL) -m 644 -o root -g root
readbuffer.o writebuffer.o rwbuffer.o: rwbuffer.h
install: all
- $(INSTALL_DIRECTORY) $(etcdir) $(bindir) $(sharedir)
+ $(INSTALL_DIRECTORY) $(confdir) $(bindir) $(sharedir) $(vardir)
$(INSTALL_PROGRAM) $(CTARGETS) $(bindir)
set -e; for s in $(BINSCRIPTS); do \
$(INSTALL_SCRIPT) $$s $(bindir)/backup-$$s; done
cd examples/$$e; \
$(INSTALL_DIRECTORY) $(exampledir)/$$e; \
$(INSTALL_SHARE) [^A-Z]*[^~] $(exampledir)/$$e; \
- (cd $(exampledir) && tar -xf -) <SYMLINKS.tar; \
+ if test -f SYMLINKS.tar; then \
+ exec <SYMLINKS.tar; \
+ (set -e; cd $(exampledir) && tar -xf -); \
+ fi; \
cd ../..; \
done
# with this program; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+require IO::File;
+
sub printdate () {
print scalar(localtime),"\n";
}
} elsif (m/^exclude\s+(\S.*\S)$/) {
push @excl,$1;
} elsif (m/^include\s+(\S.*\S)$/) {
+ $sfn = $1;
$sfn =~ s/^\./fsys./;
- $sfn = "$etc/$sfn" if $sfn !~ m,^/,;
+ $sfn = "$etc/$sfn" unless $sfn =~ m,^/,;
readfsysfile($sfn);
} else {
push @fsys,$_;
}
}
- close $fn or die $!;
+ close $fh or die $!;
}
sub readfsys ($) {
runlevel=`sed -ne '/^id:/ s/.*:\([0-9]\):.*/\1/p' /etc/inittab`
telinit $runlevel
-test ! -f /etc/backup/bringup-hook
+test ! -f /etc/chiark-backup/bringup-hook
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
cd /var/lib/chiark-backup
-PATH=/usr/lib/chiark-backup:$PATH export PATH
+PATH=/usr/share/chiark-backup:$PATH export PATH
if [ "x$1" != test ]; then
stty sane
/var dump davenant
/u dump davenant
-/ dump
/ dump davenant
/ dump xenophobe
+/ dump
+
/dos/c cpio
/dos/d cpio
# configuration, for putting in /etc/chiark-backup
chdir '/var/lib/chiark-backup' or die $!;
-push(@INC,'/usr/lib/chiark-backup');
+push(@INC,'/usr/share/chiark-backup');
$ENV{'PATH'} =~ s,^/usr/share/chiark-backup,,;
$ENV{'PATH'}= '/usr/share/chiark-backup:'.$ENV{'PATH'};
# dumped in both full and incremental dumps.
setstatus "FAILED configuration check";
print "Configuration check ...\n" or die $!;
-system 'checkallused'; $? and die $?;
+system 'backup-checkallused'; $? and die $?;
printdate();
documentation file
Copyright - AND NO WARRANTY - see notes at bottom of file for details.
-This is a quick summary of the backup scripts, and some comments on and my config files:
-it's a bit patchy and might have the odd ommission. The canonical
-source is the sources, as always :->
-
-
-WARNING - this file is out of date !
+This is a quick summary of the backup scripts, and some comments on
+some of the config files: it's a bit patchy and might have the odd
+ommission. The canonical source is the sources, as always :->
To run, the contents of /etc/chiark-backup should be:
# Runlevel 5 is set up to run a reduced level of services during
# backups. (currently this means: no squid, no webserver, no newsserver)
# We also run the backup script automatically on entering runlevel 5:
- dm:5:once:/usr/local/lib/backup/driver </dev/tty8 >/dev/tty8 2>&1
+ dm:5:once:backup-driver </dev/tty8 >/dev/tty8 2>&1
* takedown can be run from the command line or via cron.
-chiark-utils (0.99.0-1) experimental; urgency=low
+chiark-utils (2.0.0-1) experimental; urgency=low
* Initial prepackaged release of chiark backup.
* example config files from Relativity and chiark shipped.
* Improved documentation.
* bringup-hook created.
+ * bugfixes (all of bugs introduced by merge, AFAICT).
- -- Ian Jackson <ian@davenant.greenend.org.uk> Mon, 8 Oct 2001 01:11:56 +0100
+ -- Ian Jackson <ian@davenant.greenend.org.uk> Mon, 8 Oct 2001 01:52:21 +0100
# Local variables:
# mode: debian-changelog
gzip -9v $t/$$p/usr/share/doc/$$p/changelog; \
done
#
- $(MAKE) -C backup install install-examples \
+ $(MAKE) -C backup install install-docs install-examples \
prefix=$t/chiark-backup/usr \
- etcdir=$t/chiark-backup/etc
+ etcdir=$t/chiark-backup/etc \
+ varlib=$t/chiark-backup/var/lib
#
install -d $t/chiark-rwbuffer/usr/bin
cd $t/chiark-backup/usr/bin && \
binary-arch: checkroot build binary-prep
$(checkdir)
- dpkg-shlibdeps -Tdebian/sv-chiark-backup $t/chiark-backup/usr/bin/*
+ dpkg-shlibdeps -Tdebian/sv-chiark-rwbuffer $t/chiark-rwbuffer/usr/bin/*
set -e; for p in $(packages_arch); \
do debian/rules binary-one p=$$p; done