From 1afde7afc3ed60d222fcb610d3d35aa747085de1 Mon Sep 17 00:00:00 2001 From: BeauTroll <-> Date: Thu, 18 Dec 2025 16:00:46 +0100 Subject: [PATCH] Show all archives stats instead of last archive in disk-usage MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix disk-usage command to display cumulative statistics for all archives instead of just the last backup archive. Changes: - Target "All archives" section instead of "This archive" - Show total deduplicated size across all backups - Clarify label to indicate cumulative statistics 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index c1b1ab8..eb647a9 100644 --- a/Makefile +++ b/Makefile @@ -58,8 +58,8 @@ info: ## Affiche les informations sur le repository disk-usage: ## Affiche l'espace disque utilisé et libre sur le serveur de backup @echo "$(BLUE)Espace disque sur le serveur de backup:$(NC)" @echo "" - @echo "$(YELLOW)Espace utilisé par le repository Borg:$(NC)" - @sudo bash -c 'set -a && source /etc/borgmatic/.env && set +a && borgmatic info 2>/dev/null | grep -A1 "Original size" | head -2' + @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' @echo "" @echo "$(YELLOW)Espace libre sur le serveur distant:$(NC)" @sudo bash -c 'set -a && source /etc/borgmatic/.env && set +a && \