ArGest Backup User Guide

  1. Home
  2. Docs
  3. ArGest Backup User Guide
  4. Appendix
  5. Appendix E – Sample BRUTAB File

Appendix E – Sample BRUTAB File

When completed, a typical brutab file will look like this. The first entry in the table represents the default archive device. If you do not specify a device on the command line (with the -f option), this is the archive device BRU will try to use.

#
# *** GLOBAL BRUTAB PARAMETERS ****
#
#+OVERWRITEPROTECT=YES
#+ZBUFSIZE=500K
#+RECYCLEDAYS=14
#+MAXWRITES=200
#
#
# FILE
#
# brutab bru data file for loadable device table
#
#
# DESCRIPTION
#
# Bru data file for loadable device table.
# Note that the table MUST contain at least one entry
# and the first entry is the default archive device.
#
# Also, the table should contain an entry for the
# standard input and output, with a name of “-”. This
# entry SHOULD NOT be the first entry (or archives may
# be inadvertently written to the user’s terminal).
#
# Entries consist of a device name field, followed by
# one or more capabilities fields. Entries may span
# more than one line by escaping the newline at the end
# of the line with a ‘\’ character (‘\’ is last
# character on line before newline).
# All whitespace (tabs, blanks, newlines, formfeeds)
# between fields is ignored.
#
# The device name field must be the first field in the
# entry and has the following form:
#
# || ... |
#
# ex: /dev/rmt0|/dev/rmt1|/dev/rmt2
#
# where each device has the same capabilities as the
# other devices specified (a class of devices).
#
# Each capability field is of the form:
#
# = or
#
# ex: size=640M reopen pwerr=EIO
#
# Note that there can be no whitespace between the
# capability name and the value. Numeric values may be
# given in absolute form or with a trailing scale factor
# of:
#
# b or B Blocks (512 bytes)
# k or K Kilobytes (1024 bytes)
# m or M Megabytes (1024 * 1024 bytes)
# g or G Gigabytes (1024*1024*1024 bytes)
#
# Currently used capabilities include:
#
# Name Type Meaning
# ———— ————— ————————————-
# bufsize numeric default I/O buffer size for this
# device (32Kb if omitted)
# (beware of shared mem limits)
# size numeric media size in bytes if known,
# zero if unknown or variable.
# seek numeric minimum seek resolution,
# zero if no seeks allowed
# reopen boolean close and reopen archive upon
# media switch
# noreopen boolean no close and reopen archive upon
# media switch
# tape boolean archive device is a tape drive
# rawtape boolean archive device is a “raw” tape
# drive
# rawfloppy boolean archive device is a “raw” floppy
# norewind boolean closing does not automatically
# rewind
# (“size” parameter should be
# zero)
# advance boolean read/writes advance media even
# when
# errors occur (most 9-track tape
# drives, few cartridge drives)
# WARNING: do not set if not true!
# qfwrite boolean query for OK on first write to
# device
# format boolean format media if necessary
# ignoreclose boolean ignore errors from closing the
# archive
# device (bugs in some drivers)
#
###############################################################
# Standard SCSI tape
# We set size=0 to allow the system to inform us when we
# reach the early warning (ENOSPC).
###############################################################
tape0 \
size=0 seek=0 bufsize=32k shmseg=7 shmmax=200K \
reopen rawtape tape rewind shmcopy

###############################################################
# Entry for “norewind” tape - notice that noautoscan and
# norewind flags are set
###############################################################
ntape0 \
size=0 seek=0 bufsize=32k shmseg=7 shmmax=200K \
reopen rawtape tape norewind noautoscan shmcopy \
fmtcmd="tapectl -f ntape0 erase" \
rfmcmd="tapectl -f ntape0 fsf" \
bfmcmd="tapectl -f ntape0 bsf" \
retencmd="tapectl -f ntape0 reten" \
rewindcmd="tapectl -f ntape0 rewind" \
eodcmd="tapectl -f ntape0 seod"

###############################################################
# 3.5” 1.44M floppy drives
###############################################################
/dev/fd0|/dev/fd0u1440 \
size=1440K seek=2K bufsize=2k \
format fmtcmd=”fdformat /dev/fd0u1440” reopen shmcopy

#==============================================================
# This entry is a generic entry for stdin and stdout. DO
# NOT put this first or user’s will probably inadvertently
# write archives to their terminals.
#==============================================================
- size=0 seek=0 bufsize=4k