Copy-DbaDatabase - Pass IgnoreFileChecks to Backup-DbaDatabase for UNC paths#10360
Open
andreasjordan wants to merge 1 commit intodevelopmentfrom
Open
Copy-DbaDatabase - Pass IgnoreFileChecks to Backup-DbaDatabase for UNC paths#10360andreasjordan wants to merge 1 commit intodevelopmentfrom
andreasjordan wants to merge 1 commit intodevelopmentfrom
Conversation
…C 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>
Collaborator
Author
|
hmmmm thats good to know. i was wondering if it was using ignorefile checks
or not. let me know when i am good to test again. thanks for the help.
…On Thu, Apr 23, 2026 at 2:35 AM Andreas Jordan ***@***.***> wrote:
*andreasjordan* left a comment (dataplat/dbatools#10360)
<#10360?email_source=notifications&email_token=AHC23YK3GGFG52DNLHOU3TL4XG2SLA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTIMZQGIZDCMZZGY4KM4TFMFZW63VKON2WE43DOJUWEZLEUVSXMZLOOS2XA4S7MNXW23LFNZ2F633QMVXF6Y3MNFRWW#issuecomment-4302213968>
Test fails with:
image.png (view on web)
<https://github.com/user-attachments/assets/a35f4682-5572-4ce0-8425-580529a4e0cc>
—
Reply to this email directly, view it on GitHub
<#10360?email_source=notifications&email_token=AHC23YK3GGFG52DNLHOU3TL4XG2SLA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTIMZQGIZDCMZZGY4KM4TFMFZW63VKON2WE43DOJUWEZLEUVSXMZLOOS2XA4S7MNXW23LFNZ2F633QMVXF6Y3MNFRWW#issuecomment-4302213968>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHC23YJHDL4H7JXJDRB5D7T4XG2SLAVCNFSM6AAAAACYDL3QWSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHM2DGMBSGIYTGOJWHA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

When xp_fileexist fails (e.g. due to certificate issues introduced with Azure cert signing), Test-DbaPath returns
$false. Copy-DbaDatabase already handles this gracefully with a "Trying anyway" message, but was calling Backup-DbaDatabase without -IgnoreFileChecks. This caused Backup-DbaDatabase to run its own internal Test-DbaPath check, fail, and abort before attempting the backup.Adds -IgnoreFileChecks to the non-Azure Backup-DbaDatabase calls inside Copy-DbaDatabase. Copy-DbaDatabase already validates path accessibility separately, so the redundant internal check is safe to skip.
Fixes #10286
Generated with Claude Code) | [View branch](https://github.com/dataplat/dbatools/tree/claude/issue-10286-20260423-0624