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

create directory for restic mount

parent cd7d9b74
No related branches found
No related tags found
1 merge request!2Version 2
......@@ -253,13 +253,15 @@
# Mount backup data
function t_restoreDoMountBackupdata(){
local _cmd=
echo HINT: This feature requires fuse. It works on UNIX/ LINUX platforms - not on MS Windows.
echo HINT: This feature requires fuse. It works with root on UNIX/ LINUX platforms - not on MS Windows.
echo
if [ -z "$RESTIC_MOUNTPOINT" ]; then
color error
echo "ERROR: no mountpoint was set in ${STORAGEFILE}; example: restic_mountpoint = /mnt/restore"
color reset
else
j_requireUser "root"
test -d "$RESTIC_MOUNTPOINT" || mkdir -p $RESTIC_MOUNTPOINT
_cmd="restic mount ${ARGS_DEFAULT} $RESTIC_MOUNTPOINT"
test -z "${BACKUP_DIR}" || _cmd="restic mount ${ARGS_DEFAULT} --path ${BACKUP_DIR} $RESTIC_MOUNTPOINT"
echo $_cmd
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment