From 5ebc707fe6b50ac43cc49539ca0eba0439e73fb2 Mon Sep 17 00:00:00 2001 From: Jonas Kaninda Date: Sat, 7 Dec 2024 02:09:45 +0100 Subject: [PATCH] fix: fix s3 remote path --- pkg/s3.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/s3.go b/pkg/s3.go index 54b60bd..8a33841 100644 --- a/pkg/s3.go +++ b/pkg/s3.go @@ -58,7 +58,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 { @@ -119,7 +119,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 {