fix: fix s3 remote path

This commit is contained in:
Jonas Kaninda
2024-12-07 02:09:45 +01:00
parent 3703b00fec
commit 5ebc707fe6

View File

@@ -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 {