Skip to content

Backup-DbaDatabase: Respect explicit FileCount when using StorageBaseUrl (S3/Azure)#10186

Merged
potatoqualitee merged 1 commit intodevelopmentfrom
claude/issue-10180-20260222-1829
Feb 26, 2026
Merged

Backup-DbaDatabase: Respect explicit FileCount when using StorageBaseUrl (S3/Azure)#10186
potatoqualitee merged 1 commit intodevelopmentfrom
claude/issue-10180-20260222-1829

Conversation

@andreasjordan
Copy link
Collaborator

Fixes #10180

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. This allows a single StorageBaseUrl with -FileCount 4 to produce 4 striped backup files in the same bucket.

Generated with Claude Code

…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>
@andreasjordan andreasjordan changed the title Backup-DbaDatabase - Respect explicit FileCount when using StorageBaseUrl (S3/Azure) Backup-DbaDatabase: Respect explicit FileCount when using StorageBaseUrl (S3/Azure) Feb 22, 2026
@potatoqualitee
Copy link
Member

Ah, nice thank you.

@potatoqualitee potatoqualitee merged commit 71d1310 into development Feb 26, 2026
17 checks passed
@potatoqualitee potatoqualitee deleted the claude/issue-10180-20260222-1829 branch February 26, 2026 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Backup-DbaDatabase to S3 ignores value from FileCount parameter

2 participants