Commit 6500512
Copy-DbaDatabase - Pass IgnoreFileChecks to Backup-DbaDatabase for UNC paths
When xp_fileexist fails (e.g. due to certificate issues), Test-DbaPath returns
false. Copy-DbaDatabase already handles this gracefully with a "Trying anyway"
message, but then called Backup-DbaDatabase without -IgnoreFileChecks, causing
Backup-DbaDatabase to run its own Test-DbaPath check, fail, and abort.
Adding -IgnoreFileChecks to the non-Azure Backup-DbaDatabase calls skips the
redundant internal path check (Copy-DbaDatabase already validates paths) so the
backup proceeds when the SQL Server service account can actually access the path.
Fixes #10286
(do Copy-DbaDatabase)
Co-authored-by: Andreas Jordan <andreasjordan@users.noreply.github.com>1 parent 7701da9 commit 6500512
1 file changed
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1239 | 1239 | | |
1240 | 1240 | | |
1241 | 1241 | | |
| 1242 | + | |
| 1243 | + | |
| 1244 | + | |
| 1245 | + | |
| 1246 | + | |
| 1247 | + | |
| 1248 | + | |
| 1249 | + | |
1242 | 1250 | | |
1243 | | - | |
| 1251 | + | |
1244 | 1252 | | |
1245 | | - | |
| 1253 | + | |
1246 | 1254 | | |
1247 | 1255 | | |
1248 | 1256 | | |
| |||
0 commit comments