Good afternoon
I have a script to automatically backup and restore a database. I am using the Restore-SqlDatabase cmdlet module SqlServer.
Database recovery phase
Database recovery takes 40-50 minutes.
While the task is running, after 30 minutes the task timer is reset and the task is restarted, creating another backup, while database recovery is still in progress.
The job confirmation timeout is set to 180.
Product: PowerShell Universal
Version: 4.2.18