Archive:Exclude with File Patterns 3.4

From SEPsesam
Jump to: navigation, search
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
Exclude with Regular Expressions
User Manual


Exclude with File Patterns

In case of Windows backup tasks the default task's exclude_type is set to 'pattern' (file pattern).

The special characters used in File Patterns matching are:

Pattern Meaning
* matches everything
 ? matches any single character
[seq] matches any character in seq
[!seq] matches any character not in seq

Notes:

  • The file pattern match is done according to FNMATCH(3) Linux Programmer's Manual with flags FNM_FILE_NAME | FNM_LEADING_DIR | FNM_CASEFOLD | FNM_PERIOD | FNM_NOESCAPE.
  • An exclude with File Patterns for NetWare File System backup only allows the use of joker '*' (some characters) and '?' (one arbitrary character).

Examples for exclude list with file patterns:

  • 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*.log
  • Backing up NetWare NSS Volume 'VOL1:' without 'VOL1:tmp':
 VOL1:tmp
Attention

If you want to exclude a specific path then put entire path in the exclude list. Several excludes require a separation by commas.