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

Merge branch '6725-optimize-restic-backup-params' into 'master'

update restore menu

See merge request !123
parents 78d6513c 5dc7370c
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
# ================================================================================
......@@ -209,6 +210,7 @@ function doRestore(){
echo "The restore path has $(find ${RESTORE_TARGETPATH} | wc -l) items ($(du -hs ${RESTORE_TARGETPATH} | awk '{ print $1 }'))"
echo
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