Now we have a working server, we need to back it up. Our plan is to copy the users data onto a hard disc on a second machine which will serve as a live backup if the main server fails. For more permanent backup we have a Sony DAT drive.
Does anyone have useful experiences good or bad, or recommendations regarding backup software.
We just use dump in cron jobs. Three examples:
cat dump0.sh
#!/bin/sh
# file dump0 parameters are server id then partition
# copies old level 0 dump then creates new one
umask 066
if [ $2 = "/" ]; then fsname=root; else fsname=${2#/}; fi
filename=/backup/${1}/${fsname}-0.gz
filename2=/backup/${1}/${fsname}-0-bak.gz
if [ -r ${filename2} ]; then rm ${filename2} ; fi
if [ -r ${filename} ]; then mv ${filename} ${filename2} ; fi
rsh ${1} /sbin/dump 0abfu 32 - $2 | gzip >${filename}
cat dumpw.sh
#!/bin/sh
# file dumpw parameters are server id then partition
# dump level 1 every time in this version
# won't do level 0 dumps
umask 066
day=`date +\%u`
if [ $2 = "/" ]; then fsname=root; else fsname=${2#/}; fi
filename=`date +/backup/${1}/${fsname}-1-\%a.gz`
rsh ${1} /sbin/dump 1abfu 32 - $2 | gzip >${filename}
cat pjcdroot0.sh
#!/bin/sh
umask 066
filename=`date +/backup2/pjcd/root-0-\%d\%b\%g.gz`
rsh pjcd.felsted.org /sbin/dump 0abfu 32 - / | gzip >${filename}
A cron entry is
15 4 * * 6 root
/usr/local/etc/dumpscripts/dump0.sh serv254
var 2>&1 | sendmail cchd@felsted.essex.sch.uk
and restoration is done with
zcat