From 636f5987c7e12d4fc4a97a66107ebf9b5b05861e Mon Sep 17 00:00:00 2001 From: BeauTroll <-> Date: Thu, 18 Dec 2025 16:02:37 +0100 Subject: [PATCH] Fix disk-usage to show size stats instead of chunk counts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Filter borgmatic info output to show the "All archives" line containing GB sizes instead of the chunk statistics line. Changes: - Add grep filter for "GB" to capture size statistics - Avoid displaying chunk counts which appeared in wrong section 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index eb647a9..ab16e71 100644 --- a/Makefile +++ b/Makefile @@ -59,7 +59,7 @@ disk-usage: ## Affiche l'espace disque utilisé et libre sur le serveur de backu @echo "$(BLUE)Espace disque sur le serveur de backup:$(NC)" @echo "" @echo "$(YELLOW)Espace utilisé par le repository Borg (toutes archives):$(NC)" - @sudo bash -c 'set -a && source /etc/borgmatic/.env && set +a && borgmatic info 2>/dev/null | grep -A1 "All archives" | tail -1' + @sudo bash -c 'set -a && source /etc/borgmatic/.env && set +a && borgmatic info 2>/dev/null | grep "All archives" | grep GB' @echo "" @echo "$(YELLOW)Espace libre sur le serveur distant:$(NC)" @sudo bash -c 'set -a && source /etc/borgmatic/.env && set +a && \