From eb31ffd600b108fa0b428a0e4cb00e00deaaab60 Mon Sep 17 00:00:00 2001 From: Masaya Tojo Date: Mon, 20 Sep 2021 16:54:52 +0900 Subject: Remove check-backup-of-* jobs. * check-backup-of-email.run: Remove file. * check-backup-of-jupyter-notebook.run: Remove file. * check-backup-of-nextcloud.run: Remove file. --- jobs/check-backup-of-email.run | 11 ----------- jobs/check-backup-of-jupyter-notebook.run | 11 ----------- jobs/check-backup-of-nextcloud.run | 11 ----------- 3 files changed, 33 deletions(-) delete mode 100755 jobs/check-backup-of-email.run delete mode 100755 jobs/check-backup-of-jupyter-notebook.run delete mode 100755 jobs/check-backup-of-nextcloud.run (limited to 'jobs') diff --git a/jobs/check-backup-of-email.run b/jobs/check-backup-of-email.run deleted file mode 100755 index 67f4cf6..0000000 --- a/jobs/check-backup-of-email.run +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/env bash -set -euo pipefail - -todays_backup="s3://qkbackup/email/$(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 }' 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 }' diff --git a/jobs/check-backup-of-nextcloud.run b/jobs/check-backup-of-nextcloud.run deleted file mode 100755 index 20effeb..0000000 --- a/jobs/check-backup-of-nextcloud.run +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/env bash -set -euo pipefail - -todays_backup="s3://qkbackup/nextcloud/$(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 }' -- cgit v1.2.3