/etc/exclude.rootvg中附件中的两种表示有什么区别

大侠好!      如图所示在/etc/exclude.rootvg中附件中的两种表示有什么区别,请指教~谢谢!显示全部
大侠好!      如图所示在/etc/exclude.rootvg中附件中的两种表示有什么区别,请指教~谢谢!收起
参与12

查看其它 9 个回答CJ_ane的回答

CJ_aneCJ_ane系统运维工程师IBM
 -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/的文件和目录
IT其它 · 2015-03-11
浏览3254

回答者

CJ_ane
系统运维工程师IBM
擅长领域: 服务器存储系统管理

CJ_ane 最近回答过的问题

回答状态

  • 发布时间:2015-03-11
  • 关注会员:1 人
  • 回答浏览:3254
  • X社区推广