erste beide Optionen ok

This commit is contained in:
2025-05-19 21:16:16 +02:00
parent afab977f61
commit d090f5822f

View File

@@ -11,13 +11,13 @@ export BORG_PASSPHRASE="$PASSPHRASE"
# Funktion, um Informationen in einer scrollbaren Anzeige auszugeben
function show_repo_info() {
borg info "$REPO" > /tmp/repo_info.txt 2>&1
dialog --title "Repository-Informationen" --backtitle "Borg Backup" --scrollbar --textbox /tmp/repo_info.txt 25 80
dialog --title "Repository-Informationen" --backtitle "Borg Backup" --scrollbar --textbox /tmp/repo_info.txt 25 160
rm /tmp/repo_info.txt
}
function list_archives() {
borg list "$REPO" > /tmp/archive_list.txt 2>&1
dialog --title "Verfügbare Archive" --backtitle "Borg Backup" --scrollbar --textbox /tmp/archive_list.txt 25 80
dialog --title "Verfügbare Archive" --backtitle "Borg Backup" --scrollbar --textbox /tmp/archive_list.txt 25 160
rm /tmp/archive_list.txt
}
@@ -47,6 +47,7 @@ while true; do
show_archive_details
;;
4)
clear
whiptail --msgbox "Beende das Skript." 8 40 --title "Borg Backup"
exit 0
;;