From 5fb9996d6ed2a5fde47957886bb73341e1f32984 Mon Sep 17 00:00:00 2001 From: Rob Pearce Date: Thu, 14 Mar 2019 12:04:14 +1100 Subject: [PATCH] Remove 'diff' to restic repos --- bare.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bare.sh b/bare.sh index 2acb223..a62c070 100755 --- a/bare.sh +++ b/bare.sh @@ -297,8 +297,8 @@ for f in $REPOSTOBACKUP; do ${RESTIC} stats $AUTHOPTS $CONNECTIONSOPTS 2>&1 >> ${LOG} rv=$? elif [[ $CMD == "diff" ]]; then - ${RESTIC} diff $AUTHOPTS $CONNECTIONSOPTS 2>&1 >> ${LOG} - rv=$? + log "Error: diff not supported in restic." + rv=1 elif [[ $CMD == "init" ]]; then # check whether it already exists first! ${RESTIC} stats $AUTHOPTS $CONNECTIONSOPTS >/dev/null 2>&1