diff options
author | Masaya Tojo <masaya@tojo.tokyo> | 2021-09-15 21:44:44 +0900 |
---|---|---|
committer | Masaya Tojo <masaya@tojo.tokyo> | 2021-09-15 21:44:44 +0900 |
commit | e0d838b8412f506b877c99f9cb509477535b0024 (patch) | |
tree | 845199143e56443b6322e37e31fdf1655f87292f | |
parent | b49dafd4b6ac6c87f3db643455f3f4e24377b968 (diff) |
check-backup-of-*: Update.
-rwxr-xr-x | jobs/check-backup-of-email.run | 2 | ||||
-rwxr-xr-x | jobs/check-backup-of-jupyter-notebook.run | 2 | ||||
-rwxr-xr-x | 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 }' |