From a1e70788b73d77cc06c21066405e70546619dbb6 Mon Sep 17 00:00:00 2001
From: "Hahn Axel (hahn)" <axel.hahn@unibe.ch>
Date: Wed, 31 Jan 2024 10:06:16 +0100
Subject: [PATCH] update restore menu

---
 restore.sh | 18 +++++++++++++-----
 1 file changed, 13 insertions(+), 5 deletions(-)

diff --git a/restore.sh b/restore.sh
index ea4b4ac..14b441b 100755
--- a/restore.sh
+++ b/restore.sh
@@ -234,18 +234,24 @@ function doRestore(){
 
     h1 "Restore :: Menu"
 
-    echo " D - directory to restore: $BACKUP_DIR"
-    echo -n " W - time or snapshot ID : $RESTORE_ITEM"
+    echo " D - directory to restore: $( color cmd ; echo -n $BACKUP_DIR; color reset)"
+    echo
+    echo "---------- Restore method 1:"
+    echo
+    echo " M - mount backup with fuse"
+    echo
+    echo "---------- Restore method 2:"
+    echo
+    echo -n " W - time or snapshot ID : $( color cmd ; echo -n $RESTORE_ITEM; color reset)"
       test -z "$RESTORE_ITEM" && echo -n " ... set one first"
       test -z "$RESTORE_ITEMINFO" || echo -n " ($RESTORE_ITEMINFO)"
       echo
-    echo -n " F - what to restore     : $RESTORE_FILTER"
+    echo -n " F - what to restore     : $( color cmd ; echo -n $RESTORE_FILTER; color reset)"
       test -z "$RESTORE_FILTER" && echo -n "(no filter = restore all files)"
       echo
     echo
-    echo " M - mount backup"
     # echo " C - show file changes"
-    # echo " S - search file"
+    echo " S - search files"
     # echo " V - verify"
     # echo
     echo " R - start restore with $STORAGE_BIN"
@@ -266,6 +272,8 @@ function doRestore(){
       echo "(not set)"
     fi
     echo
+    echo "---------- Other:"
+    echo
     echo " B - Bash (Shell)"
     echo " X - exit"
     echo
-- 
GitLab