about summary refs log tree commit diff homepage
diff options
context:
space:
mode:
authorJune McEnroe <programble@gmail.com>2017-07-30 19:24:58 -0400
committerJune McEnroe <programble@gmail.com>2017-07-30 19:24:58 -0400
commit8e74b8a41464c0c6ffa7ea7fc6c3df7e117ccdd9 (patch)
treec2721c712efc5a462d26044cae0a9b1107e0f3a0
parentFix termcap patch for background colors (diff)
downloadtorus-8e74b8a41464c0c6ffa7ea7fc6c3df7e117ccdd9.tar.gz
torus-8e74b8a41464c0c6ffa7ea7fc6c3df7e117ccdd9.zip
Add snapshot.sh
Diffstat (limited to '')
-rw-r--r--README1
-rwxr-xr-xsnapshot.sh5
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"
ut IRC formatting parsingJune McEnroe 2018-09-11Add /help equivalent to /manJune McEnroe 2018-09-11Don't render every PM as a pingJune McEnroe 2018-09-11Add urlOpenMatchJune McEnroe 2018-09-10Depend on man.sh for chroot.tar targetJune McEnroe 2018-09-10Set LESSSECURE=1 in man.shJune McEnroe 2018-09-10Add /man commandJune McEnroe 2018-09-10Install man page in chrootJune McEnroe 2018-09-10Install man pageJune McEnroe 2018-09-10Split keys into subsections and document colorsJune McEnroe 2018-09-10Add "blank" lines to chatte.1June McEnroe 2018-09-10Document key bindings in chatte.1June McEnroe 2018-09-08Document slash commands in chatte.1June McEnroe