๐ v0.7.3 โ Enhanced Backup Path Validation & Error Diagnostics
This release introduces advanced diagnostics and validation logic for all secondary and cloud backup paths, ensuring clear error messages, automatic fallback handling, and smarter failure prevention across all modules.
It also improves installation reliability by fixing silent termination issues and refining interactive prompt visibility during setup.
โ๏ธ Main Script
/script/proxmox-backup.sh
Added
- โ
Added
validate_backup_paths()call aftersetup_dirs()to validate configuration before any backup operation. - ๐ฆ Early detection of misconfigured or empty backup paths prevents runtime failures and ensures graceful auto-disable behavior.
๐งฉ Core Libraries
/lib/storage.sh
Added
- ๐งฉ New
validate_backup_paths()function (lines 465โ518) centralizes validation for all backup targets (Primary, Secondary, Cloud). - โ๏ธ Automatic path validation on startup with clear status and auto-disable logic when directories are missing or not configured.
- โ ๏ธ Added detailed, actionable warning messages:
WARNING No secondary backup path specifiedWARNING No secondary log path specifiedWARNING No cloud backup path specifiedWARNING No rclone remote specified
Followed by matchingINFO Secondary/Cloud backup is disabled.
Fixed
- ๐งฐ Removed
2>/dev/nullsuppression from directory creation and path checks to reveal real system error messages. - ๐งพ Enhanced diagnostics for
mkdirerrors โ now report parent permissions, ownership, free space, and mount options. - ๐งฉ Fixed issue where empty
SECONDARY_LOG_PATHorCLOUD_LOG_PATHproduced crypticmkdir: cannot create directory ''messages.
Behavior
- ๐ก Misconfigured backups are now automatically disabled with clear context.
- ๐ Transforms generic
mkdirerrors into human-readable, self-explanatory warnings.
/lib/environment.sh
Added
- ๐ง Integrated
validate_backup_paths()for centralized startup validation and dynamic configuration checks.
/lib/backup_collect_pbspve.sh
Fixed
- ๐งพ Collection process now saves
findstderr/exit status into temp files and passes cause details tohandle_collection_error(). - ๐ฌ Warnings now immediately show if the issue is due to SIGPIPE (>20 directories), permission errors, or missing mounts.
- ๐ Disk usage calculation now captures
duerrors and prints# CAUSE: โฆin metadata, optionally attachingdf -houtput for visibility on offline mounts or missing permissions.
Behavior
- ๐ง Metadata still lists the first 20 directories, but when scan errors occur, logs are self-explanatory and the
Disk Usageblock includes fallback diagnostics.
๐งฐ Standalone Scripts
/script/install.sh
Fixed
- ๐งฉ Resolved silent script termination when commands failed in non-verbose mode.
- ๐ Fixed script hanging on
security-check.shinteractive prompts during installation. - ๐งพ Improved error handling in
install_dependencies()for:
apt update,apt install,apt upgrade,rclone installer,wget,tar,configure/make/make install. - ๐งฐ Modified
create_backup()andclone_repository()to capture and show command output on failure. - ๐ง Adjusted stderr redirection in
run_fix_permissions(),run_security_check(), andrun_first_backup()to allow prompts while keeping normal output silent.
Added
- ๐ฆ Added missing dependencies (
iptables,net-tools,iproute2) forsecurity-check.sh. - ๐ฌ Added local variables to capture detailed command output (
apt_output,rclone_output,build_output,git_output, etc.).
Behavior
- ๐ซ Silent mode now shows full, contextual error messages instead of failing silently.
- ๐งญ Interactive prompts are visible even in silent mode, avoiding hangs.
- โ๏ธ All required dependencies are auto-installed, ensuring smooth setup without manual input.
โ Overall Improvements
- ๐งฉ Centralized and transparent validation for all backup paths.
- ๐งญ Human-readable diagnostics for missing or invalid directories.
- ๐งฐ Safer and clearer error handling during installation and execution.
- ๐งพ Enhanced feedback for permission, space, and mount errors.
- โ๏ธ Improved user experience through early detection and automatic recovery logic.
โจ Result: The system is now more resilient, self-diagnosing, and user-friendly, with crystal-clear warnings and fully automated fallback handling for misconfigured backup paths.
Compatibility: PVE and PBS
Installation:
bash -c "$(curl -fsSL https://raw.githubusercontent.com/tis24dev/proxmox-backup/main/install.sh)"