add new seperateor and add wget

This commit is contained in:
2022-11-26 12:09:30 +01:00
parent 5908be219a
commit 5b30848e82
4 changed files with 21 additions and 2 deletions
@@ -205,6 +205,13 @@ function cleanup() {
writeDefinitionsToMetrics
if [ -n "${REPOSITORY}" ]; then
getBorgDataForRepository "${REPOSITORY}" "${HOSTNAME}"
if [ ! -z "${READ_BASEREPODIR}" ]; then
if [ -d "${BASEREPODIR}" ]; then
findRepositorysAndGetData
else
echo "Error: Set BASEREPODIR in /etc/borg_exporter.rc"
fi
fi
else
#discover (recursively) borg repositories starting from a path and extract info for each
#(e.g. when running on the backup server directly)