9d1d276d39
Fix cross-platform compilation for all target platforms
...
- Fixed type mismatch in disk space calculation (int64 casting)
- Created platform-specific disk space implementations:
* diskspace_unix.go (Linux, macOS, FreeBSD)
* diskspace_windows.go (Windows)
* diskspace_bsd.go (OpenBSD)
* diskspace_netbsd.go (NetBSD fallback)
- All 10 platforms now compile successfully:
✅ Linux (amd64, arm64, armv7)
✅ macOS (Intel, Apple Silicon)
✅ Windows (amd64, arm64)
✅ FreeBSD, OpenBSD, NetBSD
2025-11-07 15:16:54 +00:00
87e0ca3b39
feat: implement full restore functionality with TUI integration
...
- Add complete restore engine (internal/restore/)
- RestoreSingle() for single database restore
- RestoreCluster() for full cluster restore
- Archive format detection (7 formats supported)
- Safety validation (integrity, disk space, tools)
- Streaming decompression with pigz support
- Add CLI restore commands (cmd/restore.go)
- restore single: restore single database backup
- restore cluster: restore full cluster backup
- restore list: list available backup archives
- Safety-first design: dry-run by default, --confirm required
- Add TUI restore integration (internal/tui/)
- Archive browser: browse and select backups
- Restore preview: safety checks and confirmation
- Restore execution: real-time progress tracking
- Backup manager: comprehensive archive management
- Features:
- Format auto-detection (.dump, .dump.gz, .sql, .sql.gz, .tar.gz)
- Archive validation before restore
- Disk space verification
- Tool availability checks
- Target database configuration
- Clean-first and create-if-missing options
- Parallel decompression support
- Progress tracking with phases
Phase 1 (Core Functionality) complete and tested
2025-11-07 09:41:44 +00:00