Fix broken cron mode

This commit is contained in:
Rob Pearce 2020-10-11 08:28:05 +11:00
parent b57bbdac21
commit b8843a5d22
1 changed files with 1 additions and 1 deletions

View File

@ -790,7 +790,7 @@ for f in $REPOSTOBACKUP; do
elif [[ $mode == "restic" ]]; then
if [[ $CMD == "go" ]]; then
if [[ $CRONMODE -eq 1 ]]; then
{RESTIC} backup $AUTHOPTS $CONNECTIONSOPTS $SPEEDOPTS $OTHEROPTS $DATAPATH 2>&1 | egrep "^(Added|processed|snapshot)" >> ${LOG}
${RESTIC} backup $AUTHOPTS $CONNECTIONSOPTS $SPEEDOPTS $OTHEROPTS $DATAPATH 2>&1 | egrep "^(Added|processed|snapshot)" >> ${LOG}
rv=${PIPESTATUS[0]}
else
[[ $VERBOSE -eq 1 ]] && log "debug: running: [${RESTIC} backup $AUTHOPTS $CONNECTIONSOPTS $SPEEDOPTS $OTHEROPTS $DATAPATH"