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
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:
2
Makefile
2
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 "$(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 && \
|
||||||
|
|||||||
Reference in New Issue
Block a user