Quantcast
Viewing all articles
Browse latest Browse all 6482

BEMCMD - Selection List - Select SQL Databases

我需要解决方案

I will appreciate the help if anyone could help me figure out how to select certain databases (applying the template, explained below), and not have *.* (all databases).

Right now we do everything via GUI, but I have a task at hand that will cost me a lot of time if I need to do it manually.

We select databases to backup that in the Selection List looks like this:

SERVERNAME.domain.com\A*

Now, this backs up all databases that start from letter A. The template "A*" in GUI is added in "Files" field when inserting what to backup

I tried running the script to have this done for me, but all I can do successfuly is to create a *.* selection

I cannot figure out how to specify which databases to backup using the template I need, in this example: A*

So far I tried using:

- SQL1 = SERVERNAME.domain.com <---- creates SERVERNAME.domain.com\*.*

- SQL1 = SERVERNAME.domain.com\A* <---- fails

- SQL2S1 = SERVERNAME.domain.com\A* <---- fails

- Two entries together, which fails

SQL2S1 = SERVERNAME.domain.com

SQL2DB1 = A*

 

SQL Server version = 2008 R2

OS = Windows Server 2008 R2

BE version = 2010 R3

 

Thank You!


Viewing all articles
Browse latest Browse all 6482

Trending Articles