Quote: |
Is there anyway to make the MOVETO overwrite an existing file |
Use FILEOPTIONS = 4, e.g.
Code: |
EXEC master..sqlbackup '-sql "RESTORE ... WITH MOVETO = ..., FILEOPTIONS = 4"' |
Quote: |
having an error reported if the delete part of the move does not complete successfully? |
It isn't possible currently. Windows reports that the move succeeded, but SQL Backup does not actually check if the source file still exists.