Yes i have script that is working in BE2010 R3. It was not working in BE2012 ....
my script look like this:
1. I need to check JobHistoryID (JOBHISTORY_GUID) for my backup job.
2. i run this script:
bemcmd.exe -o90 -v -f C:\Scripts\res.txt
res.txt look like this:
[General]
JOB_TYPE=Restore
JOB_PRIORITY=HIGH
USERNAME=BEUser
PASSWORD=password
[Restore_Options]
SQL_REDIRECT_SERVER=dest sql server name
SQL_REDIRECT_SERVER_ACCOUNT={10011001-1001-1001-0101-010101010101}
SQL_REDIRECT_ACCOUNT={10011001-1001-1001-0101-010101010101}
SQL_REPLACE_DATABASE=1
SQL_DEFAULT_DRIVE=E
SQL_POSTRESTORE_DBCC=0
COMMAND_RUN_POST_IF_JOB_FAILS=0
COMMAND_RUN_OPTION = 0
[Selections]
JOBHISTORY_GUID={b264b8ea-efce-4344-89ae-15ac46d96964}
[Schedule]
DELETE_JOB_AFTER=2
My goal is that after full backup of production database i need this data on second sql server for reporting system (data warehouse). It's not a replication scenario.
I trayed this in BE2012 withou success, now it's BE2014 - maybe it will work.
Did you have any experience with this?
Thanks for replays!