AS ALWAYS: NO WARRANTY AT ALL!
USE IT AS EXAMPLE IF YOU WANT OR USE IT IN PRODUCTION BUT DONT BLAME ME FOR ANY PROBLEMS. THIS IS SUPPLIED AS-IT-IS AND NOTHING MORE. IF YOU DONT ACCEPT THIS REMOVE ALL YOUR COPIES OF THAT AND DO NOT USE IT.
(otherwise have fun :))
The script backup.sh is a wrapper for the backup-tape.sh script.
The latter is doing a "tar" to /dev/tape. It's designed to be
easy to adapt. This version works on the directory /root.
Currently you have to edit all files if you want to change this.
In backup-tape.sh you find a list of backup-jobs. Each job has a
name. So do a backup job, run "backup.sh
The logfiles of backup-tape.sh are parsed, i.e. the number
of files on which verify failed is calculated.
finally, a mail with status messages and so on is sent out.
This mail looks i.e. so:
To restore, change to a empty directory (or / if you're sure :))
and do a:
The script backup-session.sh is a wrapper for backup.sh. It's
like an example how to run it in an own session (this works even
if the shell get's destroyed or so to make it more fail safe). I
tried to implement a real nice error handling, that's why that
stuff looks so complex (for a simple tar wrapper) and easy to
adapt to your local setup. Read the scripts for more
informations.
-----------------------------------------------------------
Backup started at Sun Dec 3 15:32:46 CET 2000
tar: Removing leading `/' from member names
tar: Removing leading `/' from link names
Total bytes written: 80711680 (77MB, 381kB/s)
real 3m27.430s
user 0m4.350s
sys 0m10.600s
tape access finished at Sun Dec 3 15:36:31 CET 2000
Verify operation succeeded of 1233 files.
backup finished at Sun Dec 3 15:36:31 CET 2000
Errors dureing backup are reported in this mail. On success, the
tape will be ejected. On errors, the tape stays in the drive. So
it's easy to see if it was success or not when changing the
Tapes.
tar -xpvf /dev/tape
Apache/2.2.13 (Linux/SUSE) Server at sws.dett.de Port 80
Name Last modified Size Description
Parent Directory -
Changes 20-Nov-2001 08:36 246
Makefile 03-Dec-2000 17:11 581
backup-session.sh 03-Dec-2000 18:06 538
backup-tape.sh 26-Sep-2004 22:41 6.8K
backup.sh 26-Sep-2004 22:47 5.4K