4 4 3 Beefalo:Exclude with Regular Expressions: Difference between revisions
mNo edit summary |
(Added Linux include info.) |
||
Line 28: | Line 28: | ||
* Avoid all <tt>syslog####.log</tt> files:</translate> | * Avoid all <tt>syslog####.log</tt> files:</translate> | ||
/syslog[0-9]*.log$ | /syslog[0-9]*.log$ | ||
<translate>{{Note|The ''exclude list'' on the SEP sesam ''Linux'' Client can also be used as an ''include list'' by specifying the '''+''' (plus) sign at the beginning of a pattern. In this case, only the items that match the defined pattern (''regex'') will be included in the backup. For details, see [[Special:MyLanguage/4_4_3_Beefalo:Advanced_Backup_and_Restore_Options#include_option|Advanced Backup and Restore Options]].}}</translate> | |||
<translate><div class="noprint"><noinclude> | <translate><div class="noprint"><noinclude> | ||
Line 33: | Line 35: | ||
<!--T:48--> | <!--T:48--> | ||
[[Special:MyLanguage/Creating_Exclude_List|Creating Exclude List]] | [[Special:MyLanguage/Creating_Exclude_List|Creating Exclude List]] – [[Special:MyLanguage/RegExp:_Examples_for_Excluding_Matched_Patterns|RegExp: Examples for Excluding Matched Patterns]] | ||
<!--T:50--> | <!--T:50--> | ||
{{Footer/en}}</noinclude></div></translate> | {{Footer/en}}</noinclude></div></translate> |
Revision as of 16:50, 20 January 2021
Exclude 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$
Note | |
The exclude list on the SEP sesam Linux Client can also be used as an include list by specifying the + (plus) sign at the beginning of a pattern. In this case, only the items that match the defined pattern (regex) will be included in the backup. For details, see Advanced Backup and Restore Options. |