We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b64875d + ed2f1b8 commit 3dce201Copy full SHA for 3dce201
pkg/backup.go
@@ -255,6 +255,9 @@ func localBackup(db *dbConfig, config *BackupConfig) {
255
func s3Backup(db *dbConfig, config *BackupConfig) {
256
bucket := utils.GetEnvVariable("AWS_S3_BUCKET_NAME", "BUCKET_NAME")
257
s3Path := utils.GetEnvVariable("AWS_S3_PATH", "S3_PATH")
258
+ if config.remotePath != "" {
259
+ s3Path = config.remotePath
260
+ }
261
utils.Info("Backup database to s3 storage")
262
startTime = time.Now().Format(utils.TimeFormat())
263
0 commit comments