4 4 3 Beefalo:Exclude with Regular Expressions: Difference between revisions
(Added Linux include info.) |
(Update in progress.) |
||
Line 4: | Line 4: | ||
{{Template:Navigator Beefalo/en|User_Manual#appendix|Appendix|Exclude_with_File_Patterns|Exclude with File Patterns}}</div></noinclude></translate><br /> | {{Template:Navigator Beefalo/en|User_Manual#appendix|Appendix|Exclude_with_File_Patterns|Exclude with File Patterns}}</div></noinclude></translate><br /> | ||
<translate>==={{anchor|exclude_with_regular_expressions}}Exclude with Regular Expressions=== | <translate>==={{anchor|exclude_with_regular_expressions}}Exclude with Regular Expressions=== | ||
When creating a backup task in the GUI, you specify the source for your backup as well as define any files or patterns you want to exclude from the backup. Note that when the number of files to be excluded for backup exceeds allowed length for the exclude list, you should set up custom exclusion by adding files, file types or regular expressions in the ''Exclude list'' editor. On Windows, you can also use the option ''Pattern'' exclude (see [[Special:MyLanguage/4_4_3_Beefalo:Exclude_with_File_Patterns|Exclude with File Patterns]]), however on Linux it is only possible to exclude by using ''regular expressions'' (''RegExp'' exclude). For more details, see [[Special:MyLanguage/Creating_Exclude_List|Creating Exclude List]]. | |||
Examples for '' | |||
'''''Examples for exclude list with regular expressions:'''''</translate> | |||
<translate><!--T:8--> | <translate><!--T:8--> | ||
Line 29: | Line 30: | ||
/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>For more RegExp examples, see [[Special:MyLanguage/RegExp:_Examples_for_Excluding_Matched_Patterns|RegExp: Examples for Excluding Matched Patterns]]. | ||
{{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]].}} | |||
<div class="noprint"><noinclude> | |||
===See also=== <!--T:47--> | ===See also=== <!--T:47--> | ||
Revision as of 09:49, 21 January 2021
Exclude with Regular Expressions
When creating a backup task in the GUI, you specify the source for your backup as well as define any files or patterns you want to exclude from the backup. Note that when the number of files to be excluded for backup exceeds allowed length for the exclude list, you should set up custom exclusion by adding files, file types or regular expressions in the Exclude list editor. On Windows, you can also use the option Pattern exclude (see Exclude with File Patterns), however on Linux it is only possible to exclude by using regular expressions (RegExp exclude). For more details, see Creating Exclude List.
Examples for exclude list with regular expressions:
- 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$
For more RegExp examples, see RegExp: Examples for Excluding Matched Patterns.
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. |