From e0d838b8412f506b877c99f9cb509477535b0024 Mon Sep 17 00:00:00 2001 From: Masaya Tojo Date: Wed, 15 Sep 2021 21:44:44 +0900 Subject: check-backup-of-*: Update. --- jobs/check-backup-of-email.run | 2 +- jobs/check-backup-of-jupyter-notebook.run | 2 +- jobs/check-backup-of-nextcloud.run | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/jobs/check-backup-of-email.run b/jobs/check-backup-of-email.run index 26c2885..67f4cf6 100755 --- a/jobs/check-backup-of-email.run +++ b/jobs/check-backup-of-email.run @@ -8,4 +8,4 @@ output="$(guix environment --ad-hoc python2-s3cmd -- s3cmd ls "$todays_backup")" # UTC の時刻で日付が当日の場合はバックアップに成功していると見做す echo "$output" |\ awk -v utc_today="$(TZ=UTC date "+%F")" \ - '$1 != utc_today { print "Failed!"; exit 1 } ; { print }' + '$1 != utc_today && $3 > 0 { print "Failed!"; exit 1 } ; { print }' diff --git a/jobs/check-backup-of-jupyter-notebook.run b/jobs/check-backup-of-jupyter-notebook.run index 78fdc7a..9a749f0 100755 --- a/jobs/check-backup-of-jupyter-notebook.run +++ b/jobs/check-backup-of-jupyter-notebook.run @@ -8,4 +8,4 @@ output="$(guix environment --ad-hoc python2-s3cmd -- s3cmd ls "$todays_backup")" # UTC の時刻で日付が当日の場合はバックアップに成功していると見做す echo "$output" |\ awk -v utc_today="$(TZ=UTC date "+%F")" \ - '$1 != utc_today { print "Failed!"; exit 1 } ; { print }' + '$1 != utc_today && $3 > 0 { print "Failed!"; exit 1 } ; { print }' diff --git a/jobs/check-backup-of-nextcloud.run b/jobs/check-backup-of-nextcloud.run index 3ea0715..20effeb 100755 --- a/jobs/check-backup-of-nextcloud.run +++ b/jobs/check-backup-of-nextcloud.run @@ -8,4 +8,4 @@ output="$(guix environment --ad-hoc python2-s3cmd -- s3cmd ls "$todays_backup")" # UTC の時刻で日付が当日の場合はバックアップに成功していると見做す echo "$output" |\ awk -v utc_today="$(TZ=UTC date "+%F")" \ - '$1 != utc_today { print "Failed!"; exit 1 } ; { print }' + '$1 != utc_today && $3 > 0 { print "Failed!"; exit 1 } ; { print }' -- cgit v1.2.3