BAX(1)

NAME
bax - tw + pax delta backup

SYNOPSIS
bax file base [ dir ... ]

DESCRIPTION
bax generates backup tapes using tw and pax. file is the name of the backup archive to be generated. If base is then a full backup is generated in file. Otherwise base names a previous full backup against which a delta backup archive is generated in file. The backup starts at the directories dir ..., by default. File system boundaries are not crossed; multiple file systems must be specified as separate dir arguments.

Variables defined in the shell script located on customize the files and directories to be backed up. The variables and their default values are:

arch_name='arch'

arch_keep='bin|fun|lib'
    Shell patterns that match the architecture specific root directories and files. The architecture specific files that match */${arch_name}/*/${arch_keep} are retained; all other architecture specific files are skipped.

big_size=5000000

big_magic_keep='mail'
    Files larger than ${big_size} must have a magic file type that matches ${big_magic_keep}.

name_skip'?(*.)(old|save|tmp)?(.*)|.*-cache'
    File base names that match ${name_skip} are skipped.

path_skip='/dev|/usr/local/ast/ship'
    File path names that match ${path_skip} are skipped.

reg_magic_skip='core|cql * index|history|TeX dvi'
    Regular files with a magic file type that matches ${reg_magic_skip} are skipped.

src_name='src'

src_magic_skip='executable|object|(archive|shared) library'
    Files under */${src_name}/* with a magic file type that matches ${reg_magic_skip} are skipped.

EXAMPLES
To generate a full backup on /dev/st0:
    bax /dev/st0 -
To generate a delta backup in /tmp/delta.bax for the full backup above:
    bax /tmp/delta.bax /dev/st0
or if you have two tape drives:
    mt /dev/st1 eod # to append the next delta
    bax /dev/st1 /dev/st0

SEE ALSO
file(1), pax(1), tw(1), vdelta(3)