diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-02-14 23:20:44 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-02-15 00:19:57 +0100 |
commit | c235a8239177d38117f3313d17b904b66a806378 (patch) | |
tree | c023351b009a10638f4936738e8c13a5fe5f37e8 /tools/export-game.sh | |
parent | 09cae5d2f687c7df4972f58860fbc3fb9a032c1c (diff) | |
download | server-c235a8239177d38117f3313d17b904b66a806378.tar.gz |
Add import-game and export-game scripts.
To bulk transfer all game state, replay, and snapshots into a new game.
Diffstat (limited to 'tools/export-game.sh')
-rw-r--r-- | tools/export-game.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/export-game.sh b/tools/export-game.sh new file mode 100644 index 0000000..19cd4e7 --- /dev/null +++ b/tools/export-game.sh @@ -0,0 +1,8 @@ +#!/bin/bash +if [ -n "$1" ] +then + sqlite3 db "select export from game_export_view where game_id=$1" +else + echo "usage: bash tools/export-game.sh GAME > game.json" +fi + |