From 5d577f7ce885edc22e282f3f88400606ed53746e Mon Sep 17 00:00:00 2001 From: Slach Date: Wed, 23 Oct 2024 16:10:54 +0400 Subject: [PATCH] fix `use_embedded_backup_restore: true` behavior for azblob, fix https://github.com/Altinity/clickhouse-backup/issues/1031#issuecomment-2431320727 --- pkg/backup/backuper.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/backup/backuper.go b/pkg/backup/backuper.go index 2fb296e6..e92c5be2 100644 --- a/pkg/backup/backuper.go +++ b/pkg/backup/backuper.go @@ -349,7 +349,7 @@ func (b *Backuper) buildEmbeddedLocationAZBLOB() string { azblobBackupURL.Scheme = b.cfg.AzureBlob.EndpointSchema // https://github.com/Altinity/clickhouse-backup/issues/1031 if b.cfg.AzureBlob.EndpointSuffix == "core.windows.net" { - azblobBackupURL.Host = b.cfg.AzureBlob.AccountName + "." + b.cfg.AzureBlob.EndpointSuffix + azblobBackupURL.Host = b.cfg.AzureBlob.AccountName + ".blob." + b.cfg.AzureBlob.EndpointSuffix } else { azblobBackupURL.Host = b.cfg.AzureBlob.EndpointSuffix azblobBackupURL.Path = b.cfg.AzureBlob.AccountName