fix formatting for xmpp reporting

This commit is contained in:
muppeth 2023-12-31 21:38:37 +01:00
parent 0b0e90130c
commit 67aaf5bd23
Signed by: muppeth
GPG Key ID: 0EBC7B9848D04031
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ zabbix_sender --tls-connect=psk --tls-psk-identity="Bog Backup" --tls-psk-file=/
# Send backup report to XMPP
source {{ borg_xmppshouter_cfg }}
echo "💾️ BorgBackup Stats for {{ item.hostname }} - {{ item.repo_name }} 💾️" >> ${BORG_STATS_FILE}
echo ${TEMPBORG_LOG} >> ${BORG_STATS_FILE}
awk '/^-+$/ {count++} count==2, count==3 {if(count==1) next; print}' ${TEMPBORG_LOG} >> ${BORG_STATS_FILE}
echo "------------------------------------------------------------------------------" >> ${BORG_STATS_FILE}
cat ${BORG_STATS_FILE} | $SENDXMPP
rm ${BORG_STATS_FILE}