Critical fixes for enterprise environments where dbbackup runs as postgres user via 'su postgres' without sudo access: 1. canRestartPostgreSQL(): New function that detects if we can restart PostgreSQL. Returns false immediately if running as postgres user without sudo access, avoiding wasted time and potential hangs. 2. tryRestartPostgreSQL(): Now calls canRestartPostgreSQL() first to skip restart attempts in restricted environments. 3. Changed restart warning from ERROR to WARN level - it's expected behavior in enterprise environments, not an error. 4. Context cancellation check: Goroutines now check ctx.Err() before starting and properly count cancelled databases as failures. 5. Goroutine accounting: After wg.Wait(), verify all databases were accounted for (success + fail = total). Catches goroutine crashes or deadlocks. 6. Port argument fix: Always pass -p port to psql for localhost restores, fixing non-standard port configurations. This should fix the issue where cluster restore showed success but 0 databases were actually restored when running on enterprise systems.
DB Backup Tool - Pre-compiled Binaries
This directory contains pre-compiled binaries for the DB Backup Tool across multiple platforms and architectures.
Build Information
- Version: 3.42.34
- Build Time: 2026-01-16_13:03:20_UTC
- Git Commit:
3201f0f
Recent Updates (v1.1.0)
- ✅ Fixed TUI progress display with line-by-line output
- ✅ Added interactive configuration settings menu
- ✅ Improved menu navigation and responsiveness
- ✅ Enhanced completion status handling
- ✅ Better CPU detection and optimization
- ✅ Silent mode support for TUI operations
Available Binaries
Linux
dbbackup_linux_amd64- Linux 64-bit (Intel/AMD)dbbackup_linux_arm64- Linux 64-bit (ARM)dbbackup_linux_arm_armv7- Linux 32-bit (ARMv7)
macOS
dbbackup_darwin_amd64- macOS 64-bit (Intel)dbbackup_darwin_arm64- macOS 64-bit (Apple Silicon)
Windows
dbbackup_windows_amd64.exe- Windows 64-bit (Intel/AMD)dbbackup_windows_arm64.exe- Windows 64-bit (ARM)
BSD Systems
dbbackup_freebsd_amd64- FreeBSD 64-bitdbbackup_openbsd_amd64- OpenBSD 64-bitdbbackup_netbsd_amd64- NetBSD 64-bit
Usage
- Download the appropriate binary for your platform
- Make it executable (Unix-like systems):
chmod +x dbbackup_* - Run:
./dbbackup_* --help
Interactive Mode
Launch the interactive TUI menu for easy configuration and operation:
# Interactive mode with TUI menu
./dbbackup_linux_amd64
# Features:
# - Interactive configuration settings
# - Real-time progress display
# - Operation history and status
# - CPU detection and optimization
Command Line Mode
Direct command line usage with line-by-line progress:
# Show CPU information and optimization settings
./dbbackup_linux_amd64 cpu
# Auto-optimize for your hardware
./dbbackup_linux_amd64 backup cluster --auto-detect-cores
# Manual CPU configuration
./dbbackup_linux_amd64 backup single mydb --jobs 8 --dump-jobs 4
# Line-by-line progress output
./dbbackup_linux_amd64 backup cluster --progress-type line
CPU Detection
All binaries include advanced CPU detection capabilities:
- Automatic core detection for optimal parallelism
- Support for different workload types (CPU-intensive, I/O-intensive, balanced)
- Platform-specific optimizations for Linux, macOS, and Windows
- Interactive CPU configuration in TUI mode
Support
For issues or questions, please refer to the main project documentation.