diff --git a/configuration/transaction.go b/configuration/transaction.go index b80251a1..b9edc34a 100644 --- a/configuration/transaction.go +++ b/configuration/transaction.go @@ -620,7 +620,8 @@ func (t *Transaction) getBackupFile(version int64) (string, error) { if version == 0 { return t.ConfigurationFile, nil } - backupFileName := fmt.Sprintf("%v.%v", t.ConfigurationFile, version) + fileName := fmt.Sprintf("%v.%v", t.ConfigurationFile, version) + backupFileName := filepath.Join(t.BackupsDir, filepath.Base(fileName)) if _, err := os.Stat(backupFileName); err == nil { return backupFileName, nil