diff options
author | June McEnroe <june@causal.agency> | 2017-07-30 19:24:58 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2017-07-30 19:24:58 -0400 |
commit | 7d85d1813ee367c15e42206d582e5aa06e212440 (patch) | |
tree | fd5b2abcbf4a164c92e1a6fb263d9ff026c63a67 | |
parent | Fix termcap patch for background colors (diff) | |
download | torus-7d85d1813ee367c15e42206d582e5aa06e212440.tar.gz torus-7d85d1813ee367c15e42206d582e5aa06e212440.zip |
Add snapshot.sh
-rw-r--r-- | README | 1 | ||||
-rwxr-xr-x | snapshot.sh | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/README b/README index 520f878..969d2f1 100644 --- a/README +++ b/README @@ -8,6 +8,7 @@ C source files are self-compiling, e.g. ./server.c. server.c Maps torus.dat and listens on torus.sock. client.c Curses client. help.c Automated client which redraws a helpful banner. + snapshot.sh Snapshots data file, appropriate for cron. chroot.sh Creates chroot tarball. sshd_config Anonymous login to chrooted client. 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" |