From 194523c13a063be9090dac7f5b9f5be409fa6fb3 Mon Sep 17 00:00:00 2001 From: MacRimi Date: Mon, 22 Jun 2026 17:41:34 +0200 Subject: [PATCH] Update backup_host.sh --- scripts/backup_restore/backup_host.sh | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/scripts/backup_restore/backup_host.sh b/scripts/backup_restore/backup_host.sh index f0171d4d..1eefb0f0 100755 --- a/scripts/backup_restore/backup_host.sh +++ b/scripts/backup_restore/backup_host.sh @@ -699,20 +699,26 @@ _bk_manage_extra_paths() { backup_menu() { while true; do local choice + # 12 visible rows (3 separators + 6 actions + Return + blanks). + # Override the global HB_UI_MENU_LIST=10 locally so every row + # fits without a scrollbar; the height bump to 24 keeps the + # dialog chrome (title + borders + question prompt) from + # squeezing the list area. choice=$(dialog --backtitle "ProxMenux" \ --title "$(translate "Host Config Backup")" \ --menu "\n$(translate "Select backup method and profile:")" \ - "$HB_UI_MENU_H" "$HB_UI_MENU_W" "$HB_UI_MENU_LIST" \ + 24 "$HB_UI_MENU_W" 13 \ "" "$(translate "────────────────── Default profile ───────────────────")" \ 1 "$(translate "Backup to Proxmox Backup Server (PBS)")" \ 2 "$(translate "Backup to Borg repository")" \ 3 "$(translate "Backup to local archive (.tar.zst)")" \ - "" "" \ - "" "$(translate "─────── Custom profile (choose paths manually) ───────")" \ - "" "" \ + "" " " \ + "" "$(translate "─────── Custom profile (choose paths manually) ───────")" \ + "" " " \ 4 "$(translate "Custom backup to PBS")" \ 5 "$(translate "Custom backup to Borg")" \ 6 "$(translate "Custom backup to local archive")" \ + "" " " \ 0 "$(translate "Return")" \ 3>&1 1>&2 2>&3) || return 0 @@ -2768,12 +2774,13 @@ main_menu() { "$HB_UI_MENU_H" "$HB_UI_MENU_W" "$HB_UI_MENU_LIST" \ 1 "$(translate "Backup host configuration")" \ 2 "$(translate "Restore host configuration")" \ - "" "" \ + "" " " \ "" "$(translate "─────────────────────── Backup settings ───────────────────────")" \ - "" "" \ + "" " " \ 3 "$(translate "Manage custom paths (add / remove your folders)")" \ 4 "$(translate "Scheduled backups and retention policies")" \ 5 "$(translate "Configure backup destinations (PBS, Borg, local)")" \ + "" " " \ 0 "$(translate "Return")" \ 3>&1 1>&2 2>&3) || break