Remove color codes from borgmatic output
This commit is contained in:
parent
c7896338ed
commit
fe215782ed
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ echo "backup_result{host=\"${HOSTNAME}\"} $RESULT_BACKUP" >> $TMP_FILE
|
||||||
echo "prune_result{host=\"${HOSTNAME}\"} $RESULT_PRUNE" >> $TMP_FILE
|
echo "prune_result{host=\"${HOSTNAME}\"} $RESULT_PRUNE" >> $TMP_FILE
|
||||||
|
|
||||||
|
|
||||||
BORG_INFO=$(borgmatic info --last 1 ) || mv $TMP_FILE $PROM_FILE
|
BORG_INFO=$(borgmatic --no-color info --last 1 ) || mv $TMP_FILE $PROM_FILE
|
||||||
#echo "backup_count{host=\"${HOSTNAME}\"} $COUNTER" > $TMP_FILE
|
#echo "backup_count{host=\"${HOSTNAME}\"} $COUNTER" > $TMP_FILE
|
||||||
echo "backup_files{host=\"${HOSTNAME}\"} $(echo "$BORG_INFO" | grep "Number of files" | awk '{print $4}')" >> $TMP_FILE
|
echo "backup_files{host=\"${HOSTNAME}\"} $(echo "$BORG_INFO" | grep "Number of files" | awk '{print $4}')" >> $TMP_FILE
|
||||||
echo "backup_chunks_unique{host=\"${HOSTNAME}\"} $(echo "$BORG_INFO" | grep "Chunk index" | awk '{print $3}')" >> $TMP_FILE
|
echo "backup_chunks_unique{host=\"${HOSTNAME}\"} $(echo "$BORG_INFO" | grep "Chunk index" | awk '{print $3}')" >> $TMP_FILE
|
||||||
|
|
Loading…
Reference in a new issue