You can exclude a list of files and directories from a backup. You can also specify a pattern based on which files and directories can be excluded from backup. For example, you can exclude the files that end with .core.
The rules for constructing a string for excluding files are as follows:
You can specify up to 32 strings.
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 | Description |
|---|---|
| 0 | Does a full backup. |
| u | Records the backup in the /etc/dumpdates file. |
| f | Specifies that a tape device is supplied in the command line. |
| X | Specifies that an exclude list is specified. |
| rst0a | The tape drive rewinds the tape. |
| tmp,*.o,core*,*backup* | The exclude list specifies files as follows: |
| /vol/vol1 | The volume to be backed up. |