Archive:Exclude with Regular Expressions 3.4

From SEPsesam
Icon archived docs.png THE CONTENT OF THIS PAGE IS OUTDATED
SEP AG has discontinued support for obsolete SEP sesam versions. Instructions are still available for these SEP sesam products, however, SEP AG accepts no responsibility or liability for any errors or inaccuracies in the instructions or for the incorrect operation of obsolete SEP sesam software. It is strongly recommended that you update your SEP sesam software to the latest version. For the latest version of SEP sesam documentation, see documentation home.
<<<Back
Appendix
User Manual
Next>>>
Exclude with File Patterns


Exclude with Regular Expressions

Notes:

  • In case of Windows setting the task's exclude_type to 'regexp' will use the PCRE matching instead of the default file 'pattern'. A path must end with '/$' to indicate a full match, e.g. 'C:/Temp/$'
  • In case of UNIX/Linux the exclude items are set according to "emacs regex mode". A path must end with '$' to indicate a full match, e.g. '/var/opt/sesam$'
  • The Metacharacters must be 'escaped' if they should match to file name characters, e.g. use '\.' to match a '.' with regular expressions!

Examples for exclude list:

  • Backing up '/var' without '/var/tmp' but with directory '/var/tmp1':
 \./var/tmp$
  • Backing up '/var' without any directory '*/tmp*':
 /tmp
  • Backing up source '/usr' avoiding '*.o', '*.tmp', 'a.out' and 'old*.c' files and all 'old*' directories:
 \.o$, \.tmp$, /a\.out$, /old.*\.c$, /old.*/$

  • Backing up '/usr' without '/usr/var/spool' and '/usr/var/log':
 \./usr/var/spool$, \./usr/var/log$
  • Avoid all 'syslog####.log' files:
 /syslog[0-9]*.log$