Show all archives stats instead of last archive in disk-usage
Some checks failed
Deploy Borgmatic Configuration / Deploy to Production Server (push) Has been cancelled

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

View File

@@ -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 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 "$(BLUE)Espace disque sur le serveur de backup:$(NC)"
@echo "" @echo ""
@echo "$(YELLOW)Espace utilisé par le repository Borg:$(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 "Original size" | head -2' @sudo bash -c 'set -a && source /etc/borgmatic/.env && set +a && borgmatic info 2>/dev/null | grep -A1 "All archives" | tail -1'
@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 && \