From 71e39e5cb8e776c64028e7be22426772429bf685 Mon Sep 17 00:00:00 2001 From: WithoutPants <53250216+WithoutPants@users.noreply.github.com> Date: Wed, 11 Sep 2024 14:02:00 +1000 Subject: [PATCH] Default database backup to same directory as database (#5250) --- internal/manager/config/config.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/manager/config/config.go b/internal/manager/config/config.go index 3cba5e1f2..6a568c1da 100644 --- a/internal/manager/config/config.go +++ b/internal/manager/config/config.go @@ -702,7 +702,8 @@ func (i *Config) GetBackupDirectoryPath() string { func (i *Config) GetBackupDirectoryPathOrDefault() string { ret := i.GetBackupDirectoryPath() if ret == "" { - return i.GetConfigPath() + // #4915 - default to the same directory as the database + return filepath.Dir(i.GetDatabasePath()) } return ret