Fix broken cron mode
This commit is contained in:
parent
b57bbdac21
commit
b8843a5d22
2
bare.sh
2
bare.sh
|
@ -790,7 +790,7 @@ for f in $REPOSTOBACKUP; do
|
||||||
elif [[ $mode == "restic" ]]; then
|
elif [[ $mode == "restic" ]]; then
|
||||||
if [[ $CMD == "go" ]]; then
|
if [[ $CMD == "go" ]]; then
|
||||||
if [[ $CRONMODE -eq 1 ]]; 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]}
|
rv=${PIPESTATUS[0]}
|
||||||
else
|
else
|
||||||
[[ $VERBOSE -eq 1 ]] && log "debug: running: [${RESTIC} backup $AUTHOPTS $CONNECTIONSOPTS $SPEEDOPTS $OTHEROPTS $DATAPATH"
|
[[ $VERBOSE -eq 1 ]] && log "debug: running: [${RESTIC} backup $AUTHOPTS $CONNECTIONSOPTS $SPEEDOPTS $OTHEROPTS $DATAPATH"
|
||||||
|
|
Loading…
Reference in New Issue