aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMasaya Tojo <masaya@tojo.tokyo>2021-09-14 11:19:51 +0900
committerMasaya Tojo <masaya@tojo.tokyo>2021-09-14 11:19:51 +0900
commitb7d435f50f3cc521ffc004ba4108f30d02c55c8b (patch)
treea3f4f4c0e743d8bb53ca440e65f1301c1e028e45
parent286ad9ff66994b74c40ab28ed49c3e80282f1f30 (diff)
check-backup-of-nextcloud: Fix.
-rwxr-xr-xjobs/check-backup-of-jupyter-notebook.run4
1 files changed, 2 insertions, 2 deletions
diff --git a/jobs/check-backup-of-jupyter-notebook.run b/jobs/check-backup-of-jupyter-notebook.run
index 626e640..e984551 100755
--- a/jobs/check-backup-of-jupyter-notebook.run
+++ b/jobs/check-backup-of-jupyter-notebook.run
@@ -5,7 +5,7 @@ todays_backup="s3://qkbackup/jupyter-notebook/$(date "+%d")/"
echo "Check $todays_backup."
output="$(guix environment --ad-hoc python2-s3cmd -- s3cmd ls "$todays_backup")"
-# UTC の時刻で日付が同日の場合はバックアップに成功していると見做す
+# UTC の時刻で日付が前日の場合はバックアップに成功していると見做す
echo "$output" |\
- awk -v utc_today="$(TZ=UTC date "+%F")" \
+ awk -v utc_today="$(TZ=UTC date "+%F" -d '1 day ago')" \
'$1 != utc_today { print "Failed!"; exit 1 } ; { print }'