Comments
2 comments
-
What was the original database name you are now trying to restore using the backup files?
In your second script, SQL Backup will only scan the backup files made for the Henrik_UAT database. If the backup files were for a different database, you need to use the SOURCE option e.g. if the files were for a database named Henrik_PRODEXECUTE master..sqlbackup '-SQL "RESTORE DATABASE [Henrik_UAT]
FROM DISK = ... SOURCE = [Henrik_PROD] LATEST_ALL
WITH REPLACE, PASSWORD = ''<secret>''"
Now SQL Backup will scan all backup files belonging to Henrik_PROD, and restore them to the latest possible state.
Your first script (without the LATEST_ALL option) will only restore full database backups. It also works without the SOURCE option because most likely all the files matching the search pattern belonged to the same database. -
Thank you very much. That works for me.
Add comment
Please sign in to leave a comment.
this produce an Error 507: No valid backup sets found from provided folder(s).
The first read only the FULL and ignore the DIFF.
What is wrong ?