diff options
author | June McEnroe <programble@gmail.com> | 2017-07-30 19:24:58 -0400 |
---|---|---|
committer | June McEnroe <programble@gmail.com> | 2017-07-30 19:24:58 -0400 |
commit | 8e74b8a41464c0c6ffa7ea7fc6c3df7e117ccdd9 (patch) | |
tree | c2721c712efc5a462d26044cae0a9b1107e0f3a0 /snapshot.sh | |
parent | Fix termcap patch for background colors (diff) | |
download | torus-8e74b8a41464c0c6ffa7ea7fc6c3df7e117ccdd9.tar.gz torus-8e74b8a41464c0c6ffa7ea7fc6c3df7e117ccdd9.zip |
Add snapshot.sh
Diffstat (limited to '')
-rwxr-xr-x | snapshot.sh | 5 |
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" |