Compare commits

...

2 Commits

Author SHA1 Message Date
185c8fb0f3 release: v5.8.1 - TUI Archive Browser Fix
Some checks failed
CI/CD / Test (push) Has been cancelled
CI/CD / Integration Tests (push) Has been cancelled
CI/CD / Native Engine Tests (push) Has been cancelled
CI/CD / Lint (push) Has been cancelled
CI/CD / Build Binary (push) Has been cancelled
CI/CD / Test Release Build (push) Has been cancelled
CI/CD / Release Binaries (push) Has been cancelled
2026-02-03 20:09:13 +01:00
d80ac4cae4 fix(tui): Allow any .tar.gz file as cluster backup in archive browser
Previously, only files with "cluster" in the name AND .tar.gz extension
were recognized as cluster backups. This prevented users from selecting
renamed backup files.

Now ALL .tar.gz files are recognized as cluster backup archives,
since that is the standard format for cluster backups.

Also improved error message clarity.
2026-02-03 20:07:35 +01:00
3 changed files with 9 additions and 3 deletions

View File

@ -47,7 +47,12 @@ func DetectArchiveFormat(filename string) ArchiveFormat {
lower := strings.ToLower(filename)
// Check for cluster archives first (most specific)
if strings.Contains(lower, "cluster") && strings.HasSuffix(lower, ".tar.gz") {
// A .tar.gz file is considered a cluster backup if:
// 1. Contains "cluster" in name, OR
// 2. Is a .tar.gz file (likely a cluster backup archive)
if strings.HasSuffix(lower, ".tar.gz") {
// All .tar.gz files are treated as cluster backups
// since that's the format used for cluster archives
return FormatClusterTarGz
}

View File

@ -207,10 +207,11 @@ func (m ArchiveBrowserModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
// Validate selection based on mode
if m.mode == "restore-cluster" && !selected.Format.IsClusterBackup() {
m.message = errorStyle.Render("[FAIL] Please select a cluster backup (.tar.gz)")
m.message = errorStyle.Render("[FAIL] Please select a cluster backup archive (.tar.gz)")
return m, nil
}
// For single restore mode, allow any PostgreSQL/MySQL format
if m.mode == "restore-single" && selected.Format.IsClusterBackup() {
// Cluster backup selected in single restore mode - offer to select individual database
clusterSelector := NewClusterDatabaseSelector(m.config, m.logger, m, m.ctx, selected, "single", false)

View File

@ -16,7 +16,7 @@ import (
// Build information (set by ldflags)
var (
version = "5.8.0"
version = "5.8.1"
buildTime = "unknown"
gitCommit = "unknown"
)