Quantcast
Channel: Red Gate forums: SQL Backup 7
Viewing all articles
Browse latest Browse all 713

RE: Warning 130: MOVETO error: Failed to move file

$
0
0
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.

Viewing all articles
Browse latest Browse all 713

Trending Articles