From 1940ceba9a37b603551c1311761981b1034e342a Mon Sep 17 00:00:00 2001 From: Jonas Kaninda Date: Sat, 7 Dec 2024 02:25:22 +0100 Subject: [PATCH] fix: S3 remote path when backing up multiple databases --- pkg/s3.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/s3.go b/pkg/s3.go index 22bba6f..7fcab57 100644 --- a/pkg/s3.go +++ b/pkg/s3.go @@ -59,7 +59,7 @@ func s3Backup(db *dbConfig, config *BackupConfig) { Region: awsConfig.region, DisableSsl: awsConfig.disableSsl, ForcePathStyle: awsConfig.forcePathStyle, - RemotePath: awsConfig.remotePath, + RemotePath: config.remotePath, LocalPath: tmpPath, }) if err != nil { @@ -120,7 +120,7 @@ func s3Restore(db *dbConfig, conf *RestoreConfig) { Region: awsConfig.region, DisableSsl: awsConfig.disableSsl, ForcePathStyle: awsConfig.forcePathStyle, - RemotePath: awsConfig.remotePath, + RemotePath: conf.remotePath, LocalPath: tmpPath, }) if err != nil {