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!
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.