From 229c093365a37d1ed5a2b9afb89200ea8738fce7 Mon Sep 17 00:00:00 2001 From: Simon Rieger Date: Fri, 12 Apr 2024 11:41:05 +0200 Subject: [PATCH] add new line --- borg_exporter.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/borg_exporter.sh b/borg_exporter.sh index 591bea9..70a1300 100755 --- a/borg_exporter.sh +++ b/borg_exporter.sh @@ -165,6 +165,8 @@ then echo "Use Repository: $i" getBorgDataForRepository "${i}" "${HOSTNAME}" done + # Clear Cache (https://borgbackup.readthedocs.io/en/stable/faq.html#the-borg-cache-eats-way-too-much-disk-space-what-can-i-do) + #find /root/.cache/borg -type d -name 'chunks.archive.d' -exec rm -rv {}/ \; -exec sh -c 'cd {}/.. && touch chunks.archive.d' \; else #discover (recursively) borg repositories starting from a path and extract info for each #(e.g. when running on the backup server directly)