erste beide Optionen ok
This commit is contained in:
@@ -11,13 +11,13 @@ export BORG_PASSPHRASE="$PASSPHRASE"
|
|||||||
# Funktion, um Informationen in einer scrollbaren Anzeige auszugeben
|
# Funktion, um Informationen in einer scrollbaren Anzeige auszugeben
|
||||||
function show_repo_info() {
|
function show_repo_info() {
|
||||||
borg info "$REPO" > /tmp/repo_info.txt 2>&1
|
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
|
rm /tmp/repo_info.txt
|
||||||
}
|
}
|
||||||
|
|
||||||
function list_archives() {
|
function list_archives() {
|
||||||
borg list "$REPO" > /tmp/archive_list.txt 2>&1
|
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
|
rm /tmp/archive_list.txt
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -47,6 +47,7 @@ while true; do
|
|||||||
show_archive_details
|
show_archive_details
|
||||||
;;
|
;;
|
||||||
4)
|
4)
|
||||||
|
clear
|
||||||
whiptail --msgbox "Beende das Skript." 8 40 --title "Borg Backup"
|
whiptail --msgbox "Beende das Skript." 8 40 --title "Borg Backup"
|
||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in New Issue
Block a user