Update backup_host.sh

This commit is contained in:
MacRimi
2026-06-22 17:41:34 +02:00
parent 84b53fe64c
commit 194523c13a

View File

@@ -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