From b63e50b739279e392ba5742d20e37ef5b5335577 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Mon, 27 Sep 2021 03:02:59 +0000 Subject: Copy CSVs to web directory from snapshot.sh --- snapshot.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/snapshot.sh b/snapshot.sh index 6dc44fb..94526e2 100755 --- a/snapshot.sh +++ b/snapshot.sh @@ -1,6 +1,11 @@ #!/bin/sh -set -e -u +set -eu ts=$(date +'%Y.%m.%d.%H.%M') gzip -c -9 < "$1/torus.dat" > "$2/torus.dat.$ts.gz" $(dirname "$0")/meta < "$1/torus.dat" | gzip -c -9 > "$2/torus.csv.$ts.gz" + +if [ $# -gt 2 ]; then + cp "$2/torus.csv.$ts.gz" "$3" + echo "torus.csv.$ts.gz" > "$3/LATEST" +fi -- cgit 1.4.1 3fe752fdc'>this commit (deprecated) process supervisor
summary refs log tree commit diff
path: root/spawntab.5 (unfollow)
Commit message (Expand)Author
2020-08-14Open syslog, daemonize, write PIDJune McEnroe
2020-08-14Implement user and group lookupJune McEnroe
2020-08-14Add install targetJune McEnroe
2020-08-14Add spawnd skeletonJune McEnroe