Fix disk-usage to show size stats instead of chunk counts
Some checks failed
Deploy Borgmatic Configuration / Deploy to Production Server (push) Has been cancelled

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 <noreply@anthropic.com>
This commit is contained in:
BeauTroll
2025-12-18 16:02:37 +01:00
parent 1afde7afc3
commit 636f5987c7

View File

@@ -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 "$(BLUE)Espace disque sur le serveur de backup:$(NC)"
@echo "" @echo ""
@echo "$(YELLOW)Espace utilisé par le repository Borg (toutes archives):$(NC)" @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 ""
@echo "$(YELLOW)Espace libre sur le serveur distant:$(NC)" @echo "$(YELLOW)Espace libre sur le serveur distant:$(NC)"
@sudo bash -c 'set -a && source /etc/borgmatic/.env && set +a && \ @sudo bash -c 'set -a && source /etc/borgmatic/.env && set +a && \