2.5 patch 2 May 12, 1992 fix for a bug in do-backups - it tried to update the tape database with the current file number even if a tape wasn't being used. 2.5 patch 1 May, 1992 replacements for add-tape.perl, all-backups.perl, backuplib.perl, do-backups.perl, getback.perl, tape-check.perl, backup.config.5 and backup.tex: added support for tape hosts that don't have a 'good' mt status command. backup-gtar.perl: fixed bug in storing volhdr. 2.5 March, 1992 Added graph stuff for dump users. Added support for offsite tape storage, plus checkinout and offsite programs. Tape names now include the type, so instead of tape 123 we have exb-123. This can be confusing. There's no count-free command - use "show tape-summary" instead. It does the same thing. The locking system is different, and includes automatic cleanup of locks when you ^C out of one of the programs and locks now automatically timeout after 10 hours or so. You should be able to type ? at any prompt and get a brief help message. I've added an event log ($db_dir/log) that lists important events like when tapes are reused, backup runs are scheduled and so on. The entries in the backup database will be retained as long as specified by the 'keep' time for their level. If the tape that they are on is reused, their status is changed from "done" to "reused" and the tape list is deleted, so this won't cause confusion for restores. I did this to facilitate debugging strange problems. This version fully supports tape types. It will correctly ask for the right type of tape given the drive (or it will ask that you mount the tape in the right kind of drive) and so on. You can do backups to disk (-m disk) or to tape (default) or to both (-m both). You can do backups in parallel (-p) or sequential (default). This works whether you are doing the backups to disk or tape or both. I made use of the .chain files optional, and turned it off in our installation. They were a royal pain, and I don't think they were helping us at all. This is the stuff that would complain about "looks like a full restore was done..."...it was almost always wrong. I changed the format of the /etc/backups file and the backup.config file. Various (and many) bug fixes. Added misc. startup scripts (cis subdirectory). Added bunch of test routines. Nuked the -n option everywhere. It was a crock. Split backup.defs into global.defs, local.defs. Made code more portable. Made level definitions apply to 1 chain only, allows more flexible configurations. Nuked the "current" field in the backup entries - it was always "yes" and so usually wrong. all-backups: Added -i, -x, nuked old -m. Miscellaneous fixes for parallel backups, added -m disk|tape|both. Added schedulable tape-checking (-C option). Added run ID to subject line in mail messages. Choose free tape with least number of uses. /etc/backups: Changed format, added optional tag, chain and online fields. backup.config: Changed level entry, nuked expire-*, added tape-type, changed tape, level definitions apply to only 1 chain now. add-tape: Check to see if ID is database, tape has label. -U skips the label check. Added ability to add range of tapes. Re-added the -e switch, which prevents it from ejecting the tape when done. check-backups: Reads through fstab and bitches about file systems that aren't listed in /etc/backups. clean-db: Don't nuke promised tapes for some period of time (promised_timeout in global.defs). Added all sorts of warning and info messages, so that you can shove the verbose output of clean-db to a log file somewhere and grep out the interesting parts for regular monitoring. Added extra checks to find inconsistencies between what run a backup thinks it is in and what backups a run thinks it has, plus checks to find bad or missing sequence files and recreate them. Also looks for per-host runs that don't have matching entries in the main run DB. Made messages more informative, so that you should be able to determine specifically why a given tape was freed by tracing its run and backups through the output and seeing what actions it took. Fixed a rather massive bug in the way that the sanitize option worked - it was modifying the assoc array while iterating through it, so some entries get skipped, which makes them look like they are gone, so some runs might get nuked and some tapes accidently freed. Yowza. db-edit: Created database editor, nuked hack. list-backups: Fixed processing of hosts named on the command line (only took 1 before). Added ability to restrict output to specific file systems. Added -T switch to allow you to show only backups done before a given date. Added -a to display all backups, including failures. reuse: Check to see if tape has a run on it. Ask for confirmation before freeing... run-clean-db: Created short script for running clean-db and logging results, and sending only "interesting" messages through mail. show: Added -r (reverse sort order). Added tape-summary, nuked report/count-free. backup-dump, backup-gtar: Moved a bunch of common stuff to do-backups, making them simpler. Changed command line argument scheme. 2.4 Fall 1991 Added config name support. Added -m marker (now -i, -x tag). Changed locking system, added automatic lock timeouts. Add signal handlers for INTR and HUP, do lock cleanup at all exits. 2.2 August 26, 1991 list-run-db: now detects runs that don't exist in the database changed suggested backup-during-boot code for /etc/rc: see backup manual for details. restore: renamed to getback getback: 'date' setting now works added pick mode nuked -I, -F, added -m flag in place backup-dump: fixed problem with not unlocking dumpdates before aborting all-backups: if there's a problem when we're in auto-pilot mode, abort everything. also promise tapes that are named with -t INSTALL, HOWTO: merged into backup.tex in Docs directory. miscellaneous other fixes updated Notes