Backup-DbaDatabase: Respect explicit FileCount when using StorageBaseUrl (S3/Azure)#10186
Merged
potatoqualitee merged 1 commit intodevelopmentfrom Feb 26, 2026
Merged
Conversation
…eUrl (S3/Azure) Previously, FileCount was always overwritten with the count of StorageBaseUrl values, ignoring any explicit -FileCount value provided by the user. This made it impossible to stripe backups across multiple files within the same S3 bucket or Azure container. Now FileCount is only set from the URL count when the user has not explicitly provided a value (i.e., FileCount is still at its default of 0). This allows: - Single URL with FileCount=4 → 4 striped backup files in the same bucket - Multiple URLs without explicit FileCount → behavior unchanged (URL count) Fixes #10180 (do Backup-DbaDatabase) Co-authored-by: Andreas Jordan <andreasjordan@users.noreply.github.com>
Member
|
Ah, nice thank you. |
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.
Fixes #10180
Previously,
FileCountwas always overwritten with the count ofStorageBaseUrlvalues, ignoring any explicit-FileCountvalue provided by the user. This made it impossible to stripe backups across multiple files within the same S3 bucket or Azure container.Now
FileCountis only set from the URL count when the user has not explicitly provided a value. This allows a single StorageBaseUrl with-FileCount 4to produce 4 striped backup files in the same bucket.Generated with Claude Code