diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2020-08-08 15:57:53 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2020-08-08 15:57:53 +0200 |
commit | 546864bc7d2d452803baafcb5d30438924e1d223 (patch) | |
tree | 60bdfa1be249c383a697ecd00567f8dc4f0deb38 /modules/private/monitoring | |
parent | f831eb7e4b04fe788883c5f630c70020895ce7fe (diff) | |
download | Nix-546864bc7d2d452803baafcb5d30438924e1d223.tar.gz Nix-546864bc7d2d452803baafcb5d30438924e1d223.tar.zst Nix-546864bc7d2d452803baafcb5d30438924e1d223.zip |
Add other backup profiles to ovh backend
Diffstat (limited to 'modules/private/monitoring')
-rwxr-xr-x | modules/private/monitoring/plugins/check_backup_age | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/private/monitoring/plugins/check_backup_age b/modules/private/monitoring/plugins/check_backup_age index 4d03b82..d873bdc 100755 --- a/modules/private/monitoring/plugins/check_backup_age +++ b/modules/private/monitoring/plugins/check_backup_age | |||
@@ -17,8 +17,8 @@ output=$(duplicity collection-status --log-fd 2 "$BASE_URL$folder" 2>&1 > /dev/n | |||
17 | 17 | ||
18 | output=$(echo "$output" | grep -v "^\.") | 18 | output=$(echo "$output" | grep -v "^\.") |
19 | 19 | ||
20 | last_full=$(parse_date $(echo "$output" | grep "^ full " | cut -d' ' -f3 | sort | tail -n1)) | 20 | last_full=$(parse_date "$(echo "$output" | grep "^ full " | cut -d' ' -f3 | sort | tail -n1)") |
21 | last_bkp=$(parse_date $(echo "$output" | grep -E "^ (full|inc) " | cut -d' ' -f3 | sort | tail -n1)) | 21 | last_bkp=$(parse_date "$(echo "$output" | grep -E "^ (full|inc) " | cut -d' ' -f3 | sort | tail -n1)") |
22 | orphaned_sets=$(echo "$output" | grep "^orphaned-sets-num" | cut -d' ' -f2) | 22 | orphaned_sets=$(echo "$output" | grep "^orphaned-sets-num" | cut -d' ' -f2) |
23 | incomplete_sets=$(echo "$output" | grep "^incomplete-sets-num" | cut -d' ' -f2) | 23 | incomplete_sets=$(echo "$output" | grep "^incomplete-sets-num" | cut -d' ' -f2) |
24 | 24 | ||