Skip to content
Snippets Groups Projects
Commit 5dc7370c authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

update restore menu

parent a1e70788
No related branches found
No related tags found
1 merge request!123update restore menu
......@@ -173,7 +173,7 @@
function t_backupDoPostTasks(){
# --------------------
echo "--- UNLOCK ... just in case :-)"
echo "--- UNLOCK"
_restic unlock
echo
......
......@@ -23,6 +23,7 @@
# 2019-06-05 ah,ds v1.3 add custom cache dir
# 2021-05-19 ah,ds, v2.0 plugin driven
# 2022-10-21 ah v2.1 init vars; shell fixes
# 2024-02-01 ah v2.2 update restore menu
# ================================================================================
......@@ -208,7 +209,8 @@ function doRestore(){
echo Have look to the output above.
echo "The restore path has $(find ${RESTORE_TARGETPATH} | wc -l) items ($(du -hs ${RESTORE_TARGETPATH} | awk '{ print $1 }'))"
echo
echo "find ${RESTORE_TARGETPATH}"
echo " find ${RESTORE_TARGETPATH}"
echo
exit
}
......@@ -251,13 +253,12 @@ function doRestore(){
echo
echo
# echo " C - show file changes"
echo " S - search files"
# echo " V - verify"
# echo
echo " R - start restore with $STORAGE_BIN"
echo
echo " restore from : $STORAGE_TARGETPATH"
echo " restore to : $RESTORE_TARGETPATH"
echo " restore to : $( color cmd ; echo -n $RESTORE_TARGETPATH; color reset)"
echo -n " "
if [ -n "$RESTORE_TARGETPATH" ]; then
ls -d "$RESTORE_TARGETPATH" >/dev/null 2>&1
......@@ -272,8 +273,9 @@ function doRestore(){
echo "(not set)"
fi
echo
echo "---------- Other:"
echo "---------- Other options:"
echo
echo " S - search files"
echo " B - Bash (Shell)"
echo " X - exit"
echo
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment