about summary refs log tree commit diff homepage
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2017-08-26 19:32:55 -0400
committerJune McEnroe <june@causal.agency>2017-08-26 19:32:55 -0400
commite5184500830e04f3c9839d2dac62108fcb28133f (patch)
treecae5372589dea4b6a94d8aacb27bbd4cd14ee5d2
parentAdd meta.c to README (diff)
downloadtorus-e5184500830e04f3c9839d2dac62108fcb28133f.tar.gz
torus-e5184500830e04f3c9839d2dac62108fcb28133f.zip
Snapshot metadata
-rwxr-xr-xsnapshot.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/snapshot.sh b/snapshot.sh
index 536e289..6dc44fb 100755
--- a/snapshot.sh
+++ b/snapshot.sh
@@ -3,3 +3,4 @@ set -e -u
 
 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"
Signed-off-by: John Keeping <john@keeping.me.uk> 2013-04-10cgit.c: Do not restore unset environment variablesLukas Fleischer getenv() returns a NULL pointer if the specified variable name cannot be found in the environment. However, some setenv() implementations crash if a NULL pointer is passed as second argument. Only restore variables that are not NULL. See commit d96d2c98ebc4c2d3765f5b35c4142e0e828a421b for a related patch. Signed-off-by: Lukas Fleischer <cgit@cryptocrack.de> 2013-04-09t0107: Use `tar -z` for gzip'ed archivesLukas Fleischer