Library Table of Contents Index Previous Page (Alt-p) Next Page (Alt-n) Comments

Backup excluding specified files

File exclusion backup  Top

The following command performs a level-0 backup of the /vol/vol1 volume, but excludes the files that meet certain requirements:

dump 0ufX rst0a tmp,*.o,core*,*backup*, /vol/vol1 

The elements of this command line are described in the following table.

Element

Meaning

0

Do a full backup.

u

Record the backup in the /etc/dumpdates file.

f

A tape device is supplied in the command line.

X

An exclude list is specified.

rst0a

The tape drive rewinds.

tmp,*.o,core*,*backup*

The exclude list specifies files as follows:

  • tmp specifies that the file name is tmp.
  • *.o specifies that the file name ends in .o (for example, program.o).
  • core* specifies that the file name begins with the core string (for example, core.small).
  • *backup* specifies that the file name contains the backup string (for example, spec.backup.1).

/vol/vol1

This is the volume to be backed up.

Library Table of Contents Index Previous Page (Alt-p) Next Page (Alt-n) Comments