I am doing nightly restores of a couple databases using powershell. Everything was working fine but now I'm running into the following error:
Code: Select all
PS>TerminatingError(Restore-VESQLDatabase): "The specified file already exists on the target server."
Restore-VESQLDatabase : The specified file already exists on the target server.
At D:\Scripts\<MyScriptName>.ps1:139 char:9
+ Restore-VESQLDatabase -ServerName $setToSQLServer -Database $ ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Restore-VESQLDatabase], Exception
+ FullyQualifiedErrorId : System.Exception,Veeam.SQL.PowerShell.RestoreVESQLDatabaseCmdletAny thoughts?
Thank you!