Skip to content

Commit 3dce201

Browse files
authored
Merge pull request #118 from jkaninda/fix-notification
fix: fix multi backup s3 path
2 parents b64875d + ed2f1b8 commit 3dce201

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/backup.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,9 @@ func localBackup(db *dbConfig, config *BackupConfig) {
255255
func s3Backup(db *dbConfig, config *BackupConfig) {
256256
bucket := utils.GetEnvVariable("AWS_S3_BUCKET_NAME", "BUCKET_NAME")
257257
s3Path := utils.GetEnvVariable("AWS_S3_PATH", "S3_PATH")
258+
if config.remotePath != "" {
259+
s3Path = config.remotePath
260+
}
258261
utils.Info("Backup database to s3 storage")
259262
startTime = time.Now().Format(utils.TimeFormat())
260263

0 commit comments

Comments
 (0)