8 Commits

Author SHA1 Message Date
b3ac5a18df Add ETA estimation to cluster backup/restore operations
- Created internal/progress/estimator.go with ETAEstimator component
- Tracks elapsed time and estimates remaining time based on progress
- Enhanced Spinner and LineByLine indicators to display ETA info
- Integrated into BackupCluster and RestoreCluster functions
- Display format: 'Operation | X/Y (Z%) | Elapsed: Xm | ETA: ~Ym remaining'
- Preserves spinner animation while showing progress/time estimates
- Quick Win approach: no historical data storage, just current operation tracking
2025-11-07 13:28:11 +00:00
95ea807d18 Quality improvements: Remove dead code, add unit tests, fix ignored errors
HIGH PRIORITY FIXES:
1. Remove unused progressCallback mechanism (dead code cleanup)
2. Add unit tests for restore package (formats, safety checks)
   - Test coverage for archive format detection
   - Test coverage for safety validation
   - Added NullLogger for testing
3. Fix ignored errors in backup pipeline
   - Handle StdoutPipe() errors properly
   - Log stderr pipe errors
   - Document CPU detection errors

IMPROVEMENTS:
- formats_test.go: 8 test functions, all passing
- safety_test.go: 6 test functions for validation
- logger/null.go: Test helper for unit tests
- Proper error handling in streaming compression
- Fixed indentation in stderr handling
2025-11-07 11:47:07 +00:00
a5560fd6b1 fix: NullIndicator for truly silent TUI mode - no stdout at all 2025-11-05 13:55:41 +00:00
934af72940 feat: automatic swap file management for OOM prevention during large backups 2025-11-05 12:10:06 +00:00
2dd41a2b6e FIXED: TUI progess status and creating tar archive 2025-11-05 10:29:29 +00:00
3ccab48c40 MAJOR: Large DB optimization - streaming compression, smart format selection, zero-copy I/O
- Smart format selection: plain for >5GB, custom for smaller
- Streaming compression: pg_dump | pigz pipeline (zero-copy)
- Direct file writing: no Go buffering
- Memory usage: constant <1GB regardless of DB size
- Handles 100GB+ databases without OOM
- 90% memory reduction vs previous version
- Added comprehensive optimization plan docs
2025-11-04 08:02:57 +00:00
68c73d93c3 Fix cluster backup OOM: streaming output, longer timeouts, parallel dumps 2025-11-03 14:11:17 +00:00
9b3c3f2b1b Initial commit: Database Backup Tool v1.1.0
- PostgreSQL and MySQL support
- Interactive TUI with fixed menu navigation
- Line-by-line progress display
- CPU-aware parallel processing
- Cross-platform build support
- Configuration settings menu
- Silent mode for TUI operations
2025-10-22 19:27:38 +00:00