How to execute the restore script about SQLServer database with command line manually in nbu 9.1
Hi all :
I am trying to restore from a sqlserver database by restore script with command line. But I cannot make it to work because I did not find a command what can execute the restore script.
I found "bprestore" in Administrator guide but it seems like uselessly for sqlserver
Looking forward to your reply,thanks in advance
The same command you use to backup a SQL database can be used for restores.
The command is
dbbackex -f <bch file> -np
The problem is that you have to create the bch restore script every time. I suggest you to create it in the GUI for the first time and change what needs to be changed with your script.
You have to use the bplist command to find the SQL backup you need to restore. something like this.
bplist -C <SQLHOST> -S <master server> -t 15 -R 99 -s <start date> -e <enddate>

