]> About > Third-party. Group full original license notices by bundle and log the actual Python version, source and executable in backup and restore-test runs. (#548) - Fix private Python startup on Unraid systems mounting `/run` with `noexec`: keep executable files in the plugin-owned `/usr` overlay. Show extraction/reuse and the selected Python interpreter during installation and service start; distinguish BorgBackup from the application interpreter and report unavailable account checks accurately. (#548) - Include a sanitized database profile inventory in support bundles so diagnostic tools can resolve profile IDs and current backup settings. Exclude credentials and distinguish unavailable profile data from an empty inventory or a failed backup. (#703) ###2026.11.03.1237### ### Bug Fixes - Fix automatic removal of verified database dumps on Btrfs pools. Preserve the archived status of all verified database profiles if local cleanup fails, and log cleanup start, completion and failure separately. Older and manual dumps remain unchanged. (#694) ### Improvements - Show configured database backups with a Database marker on job cards. Add export start, progress and outcome messages to the job log, separate from Borg archive verification. Clarify that database exports run automatically before Docker/VM shutdown and Borg backup, without an additional pre-script. (#689) - Compare local database dumps in a compact table with separate job/manual filters, newest-first ordering, pagination and expandable paths and cleanup actions. Clarify that a job archives only its current dumps and manifest, while older and manual dumps remain governed by local retention. (#691) - Use the clear Archived status for local database dumps and explain file-size/checksum verification in the details without implying that a separate restore test was not performed. (#691) - Explain manual versus automatic local-dump retention beside the profile setting and show the policy recorded at creation in each run's details, in German and English. (#691) - Match Browse & Restore and Restore History width to Jobs. Reports and Browse & Restore now start with Choose job and load job-specific data only after an explicit selection, in German and English. (#692) ###2026.11.02.1337### ### Migration and compatibility - Upgrade Apprise from 1.13.1 to 2.1.0 with 158 available base providers. Existing profiles and secrets are preserved. Amazon Chime is retired; affected profiles show a warning and need another provider. URL options are validated more strictly, and legacy PGP email options have changed; see the provider inventory. No credentials or saved URLs are automatically converted. (#672) ### Bug Fixes - Honor notification timeouts in worker threads and profile tests. Timeouts count as failed attempts, but already running requests may still arrive later and retries can cause duplicate notifications. Keep late provider logs private. (#672) - Show overdue backups directly in collapsed job cards alongside the last run outcome. Keep only the overdue count in Latest backup runs; the detailed job list remains under Needs attention. (#679) - Keep the Jobs location selector in normal scroll flow so it no longer overlaps job headings and cards. (#680) ### Security - Update bundled certifi, OAuthlib and urllib3 to address the upstream certificate-trust, OAuth and HTTP/TLS advisories reported by dependency scanning. (#672) ### Improvements - **Docker start and stop order per job:** Drag containers or use the arrows in the Order list of the job wizard's Docker step. After the backup they start from top to bottom, and before the backup they stop one by one in reverse order, so a database at the top stops last and starts first. A custom order replaces the backup.start.priority groups and their pauses for the listed containers, and no mode waits for application readiness. Without changes, jobs keep the previous behavior with the labels. Contributed by [JonaxScript](https://github.com/JonaxScript). (#670) - Open Docker start and stop guidance from a compact link in the job wizard, reducing scrolling while keeping the full explanation available in a dialog. (#674) - Bring expanded Job and Restore Test cards into view when necessary, matching repository cards. Keep keyboard focus and respect reduced motion; background refreshes do not move the page. (#681) ]]> #!/bin/bash set -e NAME="borg-backup-ui" VERSION="&version;" PACKAGE_INSTALL_SCRIPT="/tmp/borg-backup-ui-package-install-${VERSION}.sh" PLUGIN_DIR="/boot/config/plugins/${NAME}" PACKAGE_FILE="${PLUGIN_DIR}/${NAME}-${VERSION}.txz" PACKAGE_TMP="${PACKAGE_FILE}.tmp" PACKAGE_URL="&pkgurl;" EXPECTED_MD5="c1b9a62978930d7c174cfdbf7733230e" EXPECTED_SHA256="e1ec153b4dc77ff8dd8f285524ed566db92de74aed1073dd86117e833226ab60" INSTALLED_MD5_FILE="${PLUGIN_DIR}/.installed-package-md5" VENDOR_DIR="${PLUGIN_DIR}/runtime/vendor" VENDOR_BUNDLE_DIR="${PLUGIN_DIR}/runtime/vendor-bundles" VENDOR_META="${VENDOR_BUNDLE_DIR}/apprise-vendor.json" VENDOR_MARKER="${VENDOR_DIR}/.apprise-vendor.json" VENDOR_TMP="${PLUGIN_DIR}/runtime/vendor.tmp.$$" cleanup_package_install_script() { rm -f "${PACKAGE_INSTALL_SCRIPT}" 2>/dev/null || true } trap cleanup_package_install_script EXIT file_md5() { if command -v md5sum >/dev/null 2>/dev/null; then md5sum "$1" | awk '{print $1}' else md5 -q "$1" fi } file_sha256() { if command -v sha256sum >/dev/null 2>/dev/null; then sha256sum "$1" | awk '{print $1}' else shasum -a 256 "$1" | awk '{print $1}' fi } json_value() { _json_file="$1" _json_key="$2" sed -n 's/^[[:space:]]*"'"${_json_key}"'"[[:space:]]*:[[:space:]]*"\([^"]*\)".*/\1/p' "${_json_file}" | head -n 1 } package_registered() { for _package_log in "/var/log/packages/${NAME}-${VERSION}"*; do if [ -e "${_package_log}" ]; then return 0 fi done return 1 } core_payload_present() { [ -f "${PLUGIN_DIR}/borg_backup_ui.py" ] || return 1 [ -f "/etc/rc.d/rc.borg_backup_ui" ] || return 1 return 0 } app_payload_version_matches() { [ -f "${PLUGIN_DIR}/borg_backup_ui.py" ] || return 1 grep -F -q "APP_VERSION = \"${VERSION}\"" "${PLUGIN_DIR}/borg_backup_ui.py" 2>/dev/null } package_payload_present() { core_payload_present || return 1 app_payload_version_matches || return 1 [ -f "${VENDOR_META}" ] || return 1 return 0 } vendor_ready() { [ -f "${VENDOR_META}" ] || return 1 [ -f "${VENDOR_MARKER}" ] || return 1 [ -f "${VENDOR_DIR}/apprise/__init__.py" ] || return 1 expected_version="$(json_value "${VENDOR_META}" version)" expected_sha="$(json_value "${VENDOR_META}" sha256)" marker_version="$(json_value "${VENDOR_MARKER}" version)" marker_sha="$(json_value "${VENDOR_MARKER}" sha256)" [ -n "${expected_version}" ] || return 1 [ -n "${expected_sha}" ] || return 1 [ "${expected_version}" = "${marker_version}" ] || return 1 [ "${expected_sha}" = "${marker_sha}" ] || return 1 return 0 } ensure_apprise_vendor() { if vendor_ready; then echo "Borg Backup UI: Apprise runtime is unchanged, skipping extraction." return 0 fi if [ ! -f "${VENDOR_META}" ]; then echo "ERROR: Apprise vendor metadata is missing: ${VENDOR_META}" return 1 fi bundle_name="$(json_value "${VENDOR_META}" bundle)" expected_sha="$(json_value "${VENDOR_META}" sha256)" expected_version="$(json_value "${VENDOR_META}" version)" if [ -z "${bundle_name}" ] || [ -z "${expected_sha}" ] || [ -z "${expected_version}" ]; then echo "ERROR: Apprise vendor metadata is incomplete." return 1 fi bundle_path="${VENDOR_BUNDLE_DIR}/${bundle_name}" if [ ! -f "${bundle_path}" ]; then echo "ERROR: Apprise vendor bundle is missing: ${bundle_path}" return 1 fi actual_sha="$(file_sha256 "${bundle_path}")" if [ "${actual_sha}" != "${expected_sha}" ]; then echo "ERROR: Apprise vendor bundle SHA256 does not match." echo " expected: ${expected_sha}" echo " actual : ${actual_sha}" return 1 fi echo "Borg Backup UI: extracting Apprise runtime ${expected_version}..." rm -rf "${VENDOR_TMP}" 2>/dev/null || true mkdir -p "${VENDOR_TMP}" tar -xf "${bundle_path}" -C "${VENDOR_TMP}" if [ ! -f "${VENDOR_TMP}/apprise/__init__.py" ]; then echo "ERROR: Apprise vendor bundle does not contain a runnable runtime." rm -rf "${VENDOR_TMP}" 2>/dev/null || true return 1 fi rm -rf "${VENDOR_DIR}" 2>/dev/null || true mv "${VENDOR_TMP}" "${VENDOR_DIR}" cp "${VENDOR_META}" "${VENDOR_MARKER}" } download_package() { echo "Borg Backup UI: downloading package ${VERSION}..." rm -f "${PACKAGE_TMP}" if command -v curl >/dev/null 2>/dev/null; then curl -fL --retry 3 --connect-timeout 20 -o "${PACKAGE_TMP}" "${PACKAGE_URL}" elif command -v wget >/dev/null 2>/dev/null; then wget -O "${PACKAGE_TMP}" "${PACKAGE_URL}" else echo "ERROR: Neither curl nor wget is available, cannot download package." return 1 fi actual_md5="$(file_md5 "${PACKAGE_TMP}")" if [ "${actual_md5}" != "${EXPECTED_MD5}" ]; then echo "ERROR: Package MD5 does not match." echo " expected: ${EXPECTED_MD5}" echo " actual : ${actual_md5}" rm -f "${PACKAGE_TMP}" return 1 fi if [ -n "${EXPECTED_SHA256}" ]; then if [ "$(file_sha256 "${PACKAGE_TMP}")" != "${EXPECTED_SHA256}" ]; then echo "ERROR: Package SHA256 does not match." rm -f "${PACKAGE_TMP}" return 1 fi fi mv -f "${PACKAGE_TMP}" "${PACKAGE_FILE}" } ensure_package_file() { if [ -f "${PACKAGE_FILE}" ]; then actual_md5="$(file_md5 "${PACKAGE_FILE}")" if [ "${actual_md5}" = "${EXPECTED_MD5}" ]; then if [ -z "${EXPECTED_SHA256}" ] || [ "$(file_sha256 "${PACKAGE_FILE}")" = "${EXPECTED_SHA256}" ]; then echo "Borg Backup UI: existing package matches MD5, skipping download." return 0 fi fi echo "Borg Backup UI: local package checksum differs, downloading again." fi download_package } extract_package_payload() { _reason="$1" ensure_package_file echo "Borg Backup UI: ${_reason}" tar -xf "${PACKAGE_FILE}" -C / } mkdir -p "${PLUGIN_DIR}" if package_registered; then if ! core_payload_present; then extract_package_payload "package is registered but plugin files are missing; extracting payload again." elif ! app_payload_version_matches; then extract_package_payload "installed payload version differs from ${VERSION}; extracting payload again." elif [ ! -f "${VENDOR_META}" ]; then extract_package_payload "package is registered but Apprise vendor metadata is missing; extracting payload again." fi if package_payload_present; then marker_md5="$(cat "${INSTALLED_MD5_FILE}" 2>/dev/null || true)" if [ "${marker_md5}" = "${EXPECTED_MD5}" ]; then ensure_apprise_vendor echo "Borg Backup UI: version ${VERSION} is already installed, skipping package installation." exit 0 fi if [ -f "${PACKAGE_FILE}" ]; then actual_md5="$(file_md5 "${PACKAGE_FILE}")" if [ "${actual_md5}" = "${EXPECTED_MD5}" ]; then ensure_apprise_vendor echo "Borg Backup UI: version ${VERSION} is already installed, updating MD5 marker." echo "${EXPECTED_MD5}" > "${INSTALLED_MD5_FILE}" 2>/dev/null || true exit 0 fi else echo "Borg Backup UI: version ${VERSION} is already installed, no download or extraction needed." ensure_apprise_vendor echo "${EXPECTED_MD5}" > "${INSTALLED_MD5_FILE}" 2>/dev/null || true exit 0 fi fi fi ensure_package_file echo "Borg Backup UI: installing package ${VERSION}. This can take a while on USB flash." upgradepkg --install-new "${PACKAGE_FILE}" if ! package_payload_present; then extract_package_payload "package manager did not extract the full payload; extracting payload directly." fi ensure_apprise_vendor echo "${EXPECTED_MD5}" > "${INSTALLED_MD5_FILE}" 2>/dev/null || true #!/bin/bash PLUGIN_DIR="/boot/config/plugins/borg-backup-ui" PACKAGE_FILE="${PLUGIN_DIR}/borg-backup-ui-&version;.txz" GO_FILE="/boot/config/go" # Defensive fallback: some Unraid/plugin-manager upgradepkg runs may finish # without leaving the package payload in /boot/config/plugins/borg-backup-ui. if [ ! -f "${PLUGIN_DIR}/borg_backup_ui.py" ]; then if [ -f "${PACKAGE_FILE}" ]; then echo "Plugin payload missing after upgradepkg; extracting package fallback." tar -xf "${PACKAGE_FILE}" -C / 2>/tmp/borg-backup-ui-install-extract.err || true fi fi if [ ! -f "${PLUGIN_DIR}/borg_backup_ui.py" ]; then echo "ERROR: borg-backup-ui payload was not installed from ${PACKAGE_FILE}." if [ -s /tmp/borg-backup-ui-install-extract.err ]; then cat /tmp/borg-backup-ui-install-extract.err fi exit 1 fi # Create default config if none exists yet if [ ! -f "${PLUGIN_DIR}/borg_backup_ui.conf" ]; then cp "${PLUGIN_DIR}/borg_backup_ui.conf.example" \ "${PLUGIN_DIR}/borg_backup_ui.conf" 2>/dev/null || true echo "Created borg_backup_ui.conf from template." fi # Clean up legacy Borg Backup UI autostart lines from /boot/config/go. # The plugin install/boot flow starts the service without persistent go entries. if [ -f "${GO_FILE}" ]; then sed -i '/# Borg Backup UI/d' "${GO_FILE}" 2>/dev/null || true sed -i '/rc.borg_backup_ui/d' "${GO_FILE}" 2>/dev/null || true fi # Copy restore-test script to scripts/ (if phase-1 migration was done) # Bootstrap borg-backup runtime directories BORG_BASE="/boot/config/borg-backup" mkdir -p "${BORG_BASE}/config/jobs" "${BORG_BASE}/locks" "${BORG_BASE}/scripts" # Legacy cleanup: old external runtime lib is no longer used. if [ -d "${BORG_BASE}/lib" ]; then rm -rf "${BORG_BASE}/lib" 2>/dev/null || true fi # Copy standalone backup.conf.example into runtime config path cp -f "${PLUGIN_DIR}/runtime/config/backup.conf.example" "${BORG_BASE}/config/backup.conf.example" 2>/dev/null || true if [ ! -f "${BORG_BASE}/config/backup.conf" ]; then cp -f "${BORG_BASE}/config/backup.conf.example" "${BORG_BASE}/config/backup.conf" 2>/dev/null || true fi # Copy restore-test script into runtime scripts path cp -f "${PLUGIN_DIR}/runtime/scripts/borg_restore_test.py" "${BORG_BASE}/scripts/" 2>/dev/null || true cp -f "${PLUGIN_DIR}/runtime/scripts/borg_restore_test.description" "${BORG_BASE}/scripts/" 2>/dev/null || true # Stop any running instance, then start fresh /etc/rc.d/rc.borg_backup_ui stop 2>/dev/null || true sleep 1 /etc/rc.d/rc.borg_backup_ui start # Cleanup local release artifacts: keep current + previous, delete older ones RELEASE_DIR="${PLUGIN_DIR}" if [ -d "${RELEASE_DIR}" ]; then _keep=0 ls -1t "${RELEASE_DIR}"/borg-backup-ui-*.txz 2>/dev/null | while IFS= read -r _old; do _keep=$((_keep + 1)) if [ "${_keep}" -gt 2 ]; then rm -f "${_old}" 2>/dev/null || true fi done fi rm -f /tmp/borg-backup-ui-install.sh rm -f /tmp/borg-backup-ui-install-extract.err #!/bin/bash set -e NAME="borg-backup-ui" PLUGIN_DIR="/boot/config/plugins/${NAME}" EMHTTP_DIR="/usr/local/emhttp/plugins/${NAME}" GO_FILE="/boot/config/go" RC_SCRIPT="/etc/rc.d/rc.borg_backup_ui" PIDFILE="/var/run/borg_backup_ui.pid" WAIT_PIDFILE="/var/run/borg_backup_ui_start_wait.pid" LOGFILE="/var/log/borg_backup_ui.log" CLIENT_LOGFILE="/var/log/borg_backup_ui_client.log" # Stop the service and any delayed start process before deleting payload files. if [ -x "${RC_SCRIPT}" ]; then "${RC_SCRIPT}" stop 2>/dev/null || true fi # Remove legacy autostart lines from /boot/config/go. if [ -f "${GO_FILE}" ]; then sed -i '/# Borg Backup UI/d' "${GO_FILE}" 2>/dev/null || true sed -i '/rc.borg_backup_ui/d' "${GO_FILE}" 2>/dev/null || true fi # Remove runtime files installed outside the persistent plugin directory. rm -f "${RC_SCRIPT}" 2>/dev/null || true rm -rf "${EMHTTP_DIR}" 2>/dev/null || true rm -rf /run/borg-backup-ui /usr/local/lib/borg-backup-ui 2>/dev/null || true rm -f "${PIDFILE}" "${WAIT_PIDFILE}" "${LOGFILE}" "${CLIENT_LOGFILE}" 2>/dev/null || true # Remove plugin-owned payload from the USB flash. User data outside this # directory, Borg repositories, jobs, histories, and configured data paths are # intentionally left untouched. if [ "${PLUGIN_DIR}" = "/boot/config/plugins/${NAME}" ]; then if [ -d "${PLUGIN_DIR}" ]; then rm -rf "${PLUGIN_DIR}" fi fi rm -f /tmp/borg-backup-ui-remove.sh