will now log the exit code upon replication failure
This commit is contained in:
parent
f14c940159
commit
a6b5635b00
|
@ -132,7 +132,8 @@ function backup() {
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
logger -t $(basename ${0%.sh}) -p user.notice "failed to replicate ${NEWSNAP} to ${TARGET}:${SAVETO}, no aging"
|
MY_EXIT_CODE=$?
|
||||||
|
logger -t $(basename ${0%.sh}) -p user.notice "failed to replicate ${NEWSNAP} (rc: $MY_EXIT_CODE) to ${TARGET:-local}:${SAVETO}, no aging"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# re-evaluate snapshot data usage
|
# re-evaluate snapshot data usage
|
||||||
|
|
Loading…
Reference in New Issue