Werken met het backupfilter
U kunt een backupfilter instellen en werken met expressies. Onderstaand enkele voorbeelden. De voorbeelden zijn in het Engels.
Example 1:
If you want to backup only Word, Excel and PowerPoint documents in your document directory (e.g. C:\My Documents), you should setup your backup filter as follows.
| Top Directory |
= C:\My Documents |
| Apply To |
= File (true) |
| Matching Type |
= End With |
| Matching Patterns |
= *.doc, *.xls, *.ppt |
| Filter Mode |
= Include |
| Exclude all others |
= True |
Example 2:
If you want to backup all files, excluding all *.exe, *.dll and *.tmp, in C:\Applications, you should setup your backup filter as follows.
| Top Directory |
= C:\Applications |
| Apply To |
= File (true) |
| Matching Type |
= End With |
| Matching Patterns |
= *.exe,*.dll, *.tmp |
| Filter Mode |
= Exclude |
| Include all others |
= True |
Example 3:
If you have made your selection of files (all under C:\) from the backup source setting but you want exclude all images (e.g. *.jpg and *.gif) from your selection, you should setup your backup filter as follows.
| Top Directory |
= C:\ |
| Apply To |
= File (true) |
| Matching Type |
= End With |
| Matching Patterns |
= *.jpg, *.gif |
| Filter Mode |
= Exclude |
| Include all others |
= False |
Please note that the [Include all others] setting is not enabled because you dont want to include all other files (NOT *.jpg, *.gif) under C:\ into the backup.
Reguliere expressies
| ^begin |
de regel moet beginnen met het woord 'begin' |
| .* |
de punt geeft aan welk teken dan ook goed is, de ster geeft vervolgens aan dat het niet uitmaakt hoeveel tekens ("hoeveel punten") er staan |
| eind$ |
geeft aan dat de tekst 'eind' aan het einde van de regel moet staan |
Het zoeken van een lege regel doe je met de volgende expressie:
| ^$ |
Het eind van de regel komt immers onmiddelijk na het begin van de regel |
Als laatst bespreek ik nog het '|' (pipe) teken en het gebruik van '('+')'. Met het pipe-teken kan men twee of meer expressies samenvoegen. Dit heeft dan tot gevolg dat er gekeken wordt of tenminste één van de twee expressies matched.
Bijvoorbeeld:
Example 4 (geavanceerd):
If you want to include everything, except the log directory, under C:\Applications into a backup set, you should setup your backup filter as follows.
| Top Directory |
= C:\Applications |
| Apply To |
= Directory (true) |
| Matching Type |
= Regular Expressions |
| Matching Patterns |
= ^log$ |
| Filter Mode |
= Exclude |
| Include all others |
= True |
Example 5 (geavanceerd):
If you want to include all directories named log from the backup set files with file name starting with B and ending with *.doc under C:\My Documents into the backup set, you can use a regular expression of ^B.*\.doc$ to do your selection. The filter backup can then be setup as follows.
| Top Directory |
= C:\My Documents |
| Apply To |
= File (true) |
| Matching Type |
= Regular Expressions |
| Matching Patterns |
= ^B.*\.doc$ |
| Filter Mode |
= Include |
| Include all others |
= True |
Terug naar de
|