Skip to content

Commit

Permalink
fix use_embedded_backup_restore: true behavior for azblob, fix #1031
Browse files Browse the repository at this point in the history
  • Loading branch information
Slach committed Oct 22, 2024
1 parent e568996 commit 97fd5a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/backup/backuper.go
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ func (b *Backuper) buildEmbeddedLocationAZBLOB() string {
azblobBackupURL := url.URL{}
azblobBackupURL.Scheme = b.cfg.AzureBlob.EndpointSchema
// https://github.com/Altinity/clickhouse-backup/issues/1031
if !strings.Contains(b.cfg.AzureBlob.EndpointSuffix, b.cfg.AzureBlob.AccountName) && b.cfg.AzureBlob.EndpointSuffix == "core.windows.net" {
if b.cfg.AzureBlob.EndpointSuffix == "core.windows.net" {
azblobBackupURL.Host = b.cfg.AzureBlob.AccountName + "." + b.cfg.AzureBlob.EndpointSuffix
} else {
azblobBackupURL.Host = b.cfg.AzureBlob.EndpointSuffix
Expand Down

0 comments on commit 97fd5a4

Please sign in to comment.