-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 gr...
显示全部 -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:
1 To exclude all the contents of the directory called scratch, edit the exclude file to read as follows:
/scratch/
2 To exclude the contents of the directory called /tmp, and avoid excluding any other directories that have /tmp in the path name, 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 the ^ (caret character) as the first character in the search string, followed by . (dot character), followed by the filename or directory to be
excluded.
我的理解是加“^.”的话是只排除/directory/单个目录下的文件 但不包含目录
不加"^."的话是排除所有路径包含/directory/的文件和目录
收起