You can configure LiteSpeed to only back up databases that match the specified pattern. Using wildcard and regular expressions is particularly helpful when there are databases with similar names on the same instance or on multiple instances.
Tips:
You can use wildcard characters '?' and '*' to select databases you want to back up. For example, "litespeed*" will include all databases that start with "litespeed" or "LiteSpeed"
Using regular expressions can provide you with more flexibility when selecting databases. For example, the following expressions will include a database if its name:
Begins with "LiteSpeed".
^LiteSpeed
Ends with "_PUBLISHER".
_PUBLISHER$
Begins with "LiteSpeed" followed by digits.
^LiteSpeed\d+
Contains any number within the range 828500 to 828549.
8285[0-4][0-9]
Begins with "LiteSpeed" or "Quest", except "QuestSoftwareCMSS".
^(?!QuestSoftwareCMSS)(Quest|LiteSpeed)
NOTES:
Click here for information about the regular expression constructs.
Review the following for additional information:
Construct | Description |
---|---|
^ |
The character following this construct is at the beginning of the document or new line. Text: no cat can catch a crow Expression: ^\w+ Matches: no |
$ |
The character followed by this construct is at the end of the string. Text: no cat can catch a crow Expression: \w+$ Matches: crow |
(normal characters) |
Characters match themselves, except for the following: ^ . * + ? { [ ( | ) \ $ |
\ |
The character immediately following it, when that character is not an escaped character. Expression: \* Matches: * |
\w |
Any word character (A - Z and a - z), digits, and underscores. Text: no cat can catch a crow Expression: ca\w+ Matches: cat, can, catch |
\W |
Any non-word character. Text: 9pm @ RockCafe Expression: \W Matches: @ |
\d |
Any digit. Text: APR-2012 Expression: \d\d\d\d Matches: 2012 |
\D |
Any non-digit. Text: APR-2012 Expression: \D\D\D Matches: APR |
\s |
Any whitespace character. Text: no cat can catch a crow Expression: c\w\w\s Matches: "cat " and "can "(both matches include the space) |
\S |
Any non-whitespace character. Text: no cat can catch a crow Expression: c\S+ Matches: cat, can, catch, crow |
[ ] |
Any character within the brackets. Expression: p[ai]ck Matches: pick, pack |
[ - ] |
Any character within the specified range. [0-9a-fA-F] matches a single hexadecimal digit, without case sensitivity. Expression: b[a-z]ttle Matches: battle, bottle NOTE: The - character is considered a literal character if it used as the first or last character within the brackets, or if it is escaped with a backslash. |
[^ ] |
Any character that is not in the specified set of characters. Expression: d[^u]g Matches: dog and dig but not dug |
. |
Any single character. When preceded with the escape character (\), it is equivalent to a period character. Expression: d.g Matches: dog, dig, and dug |
* |
Zero or more matches of the preceding character. Expression: a*ha Matches: ha, aha, aaha, aaaha, etc. |
? |
Zero or one matches of the preceding character. Expression: colou?r Matches: color and colour |
+ |
One or more matches of the preceding character. Expression: goo+gle Matches: google, gooogle, etc. |
{n} |
The exact number of matches for the preceding character. Text: he had to go too far Expression: o{2} Matches: oo in "too" |
{n,m} |
The preceding character must match at least "n" times but no more than "m" times. Expression: mo{2,3}n Matches: moon and mooon, but not mon or moooon |
( ) |
Matches subexpression. Text: doors Expression: (\w)\1 Matches: oo |
| |
Matches any of the alternate expressions. Expression: theat(er|re) Matches: theater and theatre |
(?# ) |
A comment within a regular expression. The comment ends after the first closing parenthesis. Expression: theat(er|re)(?# using this example a second time) Matches: theater and theatre |
(?= ) |
A zero-width positive lookahead assertion. Expression: ^(?=.{32}$)(\d+) Matches: numbers at the beginning of any line which is exactly 32 characters long |
(?! ) |
A zero-width negative lookahead assertion. Expression: ^(?!test).+ Matches: any line that does not begin with "test" |
(?<= ) |
A zero-width positive lookbehind assertion. Expression: (?<=20)\d{2} Matches: all instances of 2-digit numbers that follow 20 |
(?<! ) |
A zero-width negative lookbehind assertion. Expression: (?<!20)\d{2} Matches: all instances of 2-digit numbers that do not follow 20 |
For more information about regular expressions, see |
© ALL RIGHTS RESERVED. Términos de uso Privacidad Cookie Preference Center