add field-seperator for use multiple repositorys
This commit is contained in:
parent
caed3f9696
commit
199a1d0562
1 changed files with 7 additions and 2 deletions
|
@ -160,7 +160,11 @@ echo "# TYPE borg_last_size_dedup gauge" >> $TMP_FILE
|
||||||
|
|
||||||
if [ -n "${REPOSITORY}" ]
|
if [ -n "${REPOSITORY}" ]
|
||||||
then
|
then
|
||||||
getBorgDataForRepository "${REPOSITORY}" "${HOSTNAME}"
|
for i in $(echo $REPOSITORY | tr ";" "\n")
|
||||||
|
do
|
||||||
|
echo "Use Repository: $i"
|
||||||
|
getBorgDataForRepository "${i}" "${HOSTNAME}"
|
||||||
|
done
|
||||||
else
|
else
|
||||||
#discover (recursively) borg repositories starting from a path and extract info for each
|
#discover (recursively) borg repositories starting from a path and extract info for each
|
||||||
#(e.g. when running on the backup server directly)
|
#(e.g. when running on the backup server directly)
|
||||||
|
@ -199,6 +203,7 @@ fi
|
||||||
#cleanup
|
#cleanup
|
||||||
rm -f $TMP_FILE
|
rm -f $TMP_FILE
|
||||||
|
|
||||||
sleep 60
|
# Wait 10 hours
|
||||||
|
sleep 6000
|
||||||
|
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue