about summary refs log tree commit diff homepage
path: root/snapshot.sh
diff options
context:
space:
mode:
Diffstat (limited to 'snapshot.sh')
-rwxr-xr-xsnapshot.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/snapshot.sh b/snapshot.sh
new file mode 100755
index 0000000..2f15498
--- /dev/null
+++ b/snapshot.sh
@@ -0,0 +1,5 @@
+#!/bin/sh
+set -e -u
+
+ts=`date +'%Y.%m.%d.%H.%M'`
+gzip -c -9 < "$1/torus.dat" > "$2/torus.dat.$ts.gz"