github tis24dev/proxsave v0.7.3

latest releases: v0.11.15, v0.11.14, v0.11.13...
one month ago

๐Ÿš€ 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 after setup_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 specified
    • WARNING No secondary log path specified
    • WARNING No cloud backup path specified
    • WARNING No rclone remote specified
      Followed by matching INFO Secondary/Cloud backup is disabled.

Fixed

  • ๐Ÿงฐ Removed 2>/dev/null suppression from directory creation and path checks to reveal real system error messages.
  • ๐Ÿงพ Enhanced diagnostics for mkdir errors โ€” now report parent permissions, ownership, free space, and mount options.
  • ๐Ÿงฉ Fixed issue where empty SECONDARY_LOG_PATH or CLOUD_LOG_PATH produced cryptic mkdir: cannot create directory '' messages.

Behavior

  • ๐Ÿ’ก Misconfigured backups are now automatically disabled with clear context.
  • ๐Ÿ” Transforms generic mkdir errors 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 find stderr/exit status into temp files and passes cause details to handle_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 du errors and prints # CAUSE: โ€ฆ in metadata, optionally attaching df -h output 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 Usage block 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.sh interactive 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() and clone_repository() to capture and show command output on failure.
  • ๐Ÿ”ง Adjusted stderr redirection in run_fix_permissions(), run_security_check(), and run_first_backup() to allow prompts while keeping normal output silent.

Added

  • ๐Ÿ“ฆ Added missing dependencies (iptables, net-tools, iproute2) for security-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)"

Don't miss a new proxsave release

NewReleases is sending notifications on new releases.