Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BackupType - Option to use lower case in URL #726

Open
Kevin-S-Lewis opened this issue Feb 27, 2023 · 0 comments
Open

BackupType - Option to use lower case in URL #726

Kevin-S-Lewis opened this issue Feb 27, 2023 · 0 comments

Comments

@Kevin-S-Lewis
Copy link

Given that Azure blob container names have to be lower case, and that the BackupType variable is in upper case of FULL/DIFF/LOG, when you may have different retention periods for Full's, Diff's and Log backups, then it would be useful to have separate containers with those different retention periods to automatically clear out files.

As such would it be possible to override the BackupType name or have an option of a @BackupTypeToLowerCase variable or even a @BackupPathToLowerCase?

Thus when using @DirectoryStructure and @AvailabilityGroupDirectoryStructure ending up something like this:

mybackups.blob.core.windows.net/full/{ServerName}${InstanceName}{DirectorySeparator}{DatabaseName}
mybackups.blob.core.windows.net/full/{ClusterName}${AvailabilityGroupName}{DirectorySeparator}{DatabaseName}

mybackups.blob.core.windows.net/log/{ServerName}${InstanceName}{DirectorySeparator}{DatabaseName}
mybackups.blob.core.windows.net/log/{ClusterName}${AvailabilityGroupName}{DirectorySeparator}{DatabaseName}

..and yes the method that the person running with this idea would either need 3 separate SAS keys/credentials or a SAS key generated off of the storage account with corresponding credential, which would then allow for @ChangeBackupType to be used.

https://learn.microsoft.com/en-us/rest/api/storageservices/naming-and-referencing-containers--blobs--and-metadata#container-names

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants