diff options
Diffstat (limited to 'jobs/check-backup-of-jupyter-notebook.run')
-rwxr-xr-x | jobs/check-backup-of-jupyter-notebook.run | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/jobs/check-backup-of-jupyter-notebook.run b/jobs/check-backup-of-jupyter-notebook.run deleted file mode 100755 index 9a749f0..0000000 --- a/jobs/check-backup-of-jupyter-notebook.run +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/env bash -set -euo pipefail - -todays_backup="s3://qkbackup/jupyter-notebook/$(date "+%w")/" -echo "Check $todays_backup." -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 && $3 > 0 { print "Failed!"; exit 1 } ; { print }' |