]> git.immae.eu Git - perso/Immae/Config/Nix.git/blobdiff - modules/private/monitoring/plugins/check_backup_age
Add other backup profiles to ovh backend
[perso/Immae/Config/Nix.git] / modules / private / monitoring / plugins / check_backup_age
index 4d03b8270ed7603fc12e24e041f2e38abe180e09..d873bdc4ea1814bddc4ecc72cd120afad4d0295e 100755 (executable)
@@ -17,8 +17,8 @@ output=$(duplicity collection-status --log-fd 2 "$BASE_URL$folder" 2>&1 > /dev/n
 
 output=$(echo "$output" | grep -v "^\.")
 
-last_full=$(parse_date $(echo "$output" | grep "^ full " | cut -d' ' -f3 | sort | tail -n1))
-last_bkp=$(parse_date $(echo "$output" | grep -E "^ (full|inc) " | cut -d' ' -f3 | sort | tail -n1))
+last_full=$(parse_date "$(echo "$output" | grep "^ full " | cut -d' ' -f3 | sort | tail -n1)")
+last_bkp=$(parse_date "$(echo "$output" | grep -E "^ (full|inc) " | cut -d' ' -f3 | sort | tail -n1)")
 orphaned_sets=$(echo "$output" | grep "^orphaned-sets-num" | cut -d' ' -f2)
 incomplete_sets=$(echo "$output" | grep "^incomplete-sets-num" | cut -d' ' -f2)