commit f9ef1375541a80901a3bc00bd5a4ca2dbfdda54c Author: Jeff Carr Date: Wed Jan 11 23:38:00 2023 -0600 gentoo OK diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..8091234 --- /dev/null +++ b/Makefile @@ -0,0 +1,9 @@ +gentoo-OK: + ./enter-datapoint.sh gentoo OK + git add --all + git commit -m "gentoo OK" + +gentoo-FAIL: + ./enter-datapoint.sh gentoo FAIL + git add --all + git commit -m "gentoo FAIL" diff --git a/enter-datapoint.sh b/enter-datapoint.sh new file mode 100755 index 0000000..1f3ce62 --- /dev/null +++ b/enter-datapoint.sh @@ -0,0 +1,37 @@ +#!/bin/bash -x + +# ./rsync_master.sh mirrors.kernel.org debian pool/ + +DIST=$1 +NAME=$2 + +STAMP=`date +%Y.%m.%d.%H%M%S` + +if [ "$2" == "" ]; then + echo $0 " " + exit +fi + +touch $DIST/$STAMP.$NAME + +exit + +if [ -f "$BASE/$DIST.status.RUNNING" ]; then + echo rsync already running on $BASE/$DIST.status.RUNNING + exit -1 +fi +rsync $ARG $ARGD $SOURCE $DEST +RETURN=$? +rm $BASE/$DIST.status.RUNNING +echo rsync returned: $RETURN +if [ "$RETURN" == "0" ]; then + echo should echo OK into a google check file + echo OK > $BASE/STATUS + touch $BASE/$DIST.status.OK + touch $BACKUPDIR".log.OK" +else + echo should echo ERROR into a google check file + echo FAIL > $BASE/STATUS + touch $BASE/$DIST.status.FAIL + touch $BACKUPDIR".log.FAIL" +fi diff --git a/gentoo/2023.01.11.233645.OK b/gentoo/2023.01.11.233645.OK new file mode 100644 index 0000000..e69de29 diff --git a/gentoo/2023.01.11.233800.OK b/gentoo/2023.01.11.233800.OK new file mode 100644 index 0000000..e69de29