diff --git a/plugins/transfer/restic.sh b/plugins/transfer/restic.sh index 6512f89b9787bae9c96b70c6d961ab423b9b50e3..95f8a9838123c939f70056db476c6a0c876d457c 100644 --- a/plugins/transfer/restic.sh +++ b/plugins/transfer/restic.sh @@ -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