Remove 'diff' to restic repos

This commit is contained in:
Rob Pearce 2019-03-14 12:04:14 +11:00
parent a7f7768567
commit 5fb9996d6e
1 changed files with 2 additions and 2 deletions

View File

@ -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