blob: 94526e2752178d0324ad9f9889fe2bd34aefed1a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
#!/bin/sh
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
|