update for borgmatic 2.0

This commit is contained in:
BeauTroll
2025-12-16 05:50:03 +01:00
parent 92d9b530f3
commit 66e4cd166f
6 changed files with 173 additions and 94 deletions

View File

@@ -52,7 +52,7 @@ echo -e "${YELLOW}🔍 Vérification de la configuration...${NC}"
if [ -f /etc/borgmatic/config.yaml ]; then
echo -e "${GREEN}✅ Fichier de configuration trouvé${NC}"
if validate-borgmatic-config > /dev/null 2>&1; then
if borgmatic config validate > /dev/null 2>&1; then
echo -e "${GREEN}✅ Configuration valide${NC}"
else
echo -e "${YELLOW}⚠️ Utilisez 'borgmatic --dry-run' pour tester${NC}"