Examples of the dump command
Backup excluding specified files
File exclusion backup
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.
|
Copyright © 1994-2003, Network Appliance, Inc. All rights
reserved.
Part No. 210-00325
File: dump34.htm
Last updated: 01/14/03 18:33:08