Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excluding filesystems on a MKSYSB tape

Status
Not open for further replies.

smith364

IS-IT--Management
Jun 26, 2001
34
US
How do I exclude filesystems on a mksysb tape. What should the /etc/exclude.rootvg file look like? I want system data, not user dat.
 
You can also unmount the filesystems to exclude them...

for /etc/exclude.rootvg: see the man page for mksysb:

-e
Excludes files listed in the /etc/exclude.rootvg file from being backed up. The rules
for exclusion follow the pattern matching rules of the grep command.

If you want to exclude certain files from the backup, create the /etc/exclude.rootvg
file, with an ASCII editor, and enter the patterns of file names that you do not want
included in your system backup image. The patterns in this file are input to the
pattern matching conventions of the grep command to determine which files will be
excluded from the backup. If you want to exclude files listed in the
/etc/exclude.rootvg file, select the Exclude Files field and press the Tab key once to
change the default value to yes.

For example, to exclude all the contents of the directory called scratch, edit the
exclude file to read as follows:

/scratch/

For example, to exclude the contents of the directory called /tmp, and avoid excluding
any other directories that have /tmp in the pathname, edit the exclude file to read as
follows:

^./tmp/

All files are backed up relative to . (current working directory). To exclude any file
or directory for which it is important to have the search match the string at the
beginning of the line, use ^ (caret character) as the first character in the search
string, followed by . (dot character), followed by the filename or directory to be
excluded.

If the filename or directory being excluded is a substring of another filename or
directory, use ^. (caret character followed by dot character) to indicate that the
search should begin at the beginning of the line and/or use $ (dollar sign character)
to indicate that the search should end at the end of the line.

Your exclude file could have:

^./my/user/data/FS/
^./my/other/user/data/FS/

You have to specify -e flag to use the exclude file!


HTH,

p5wizard
 
BEWARE!
it is very easy to exclude the wrong data and make the tape useless
as I work for a disaster recovery company, I have seen many a time that a recovery has failed due to incorrect includes.

tapes are big - just let it back rootvg up

if the data isn't required for backup, it shouldn't be in rootvg...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top