From: Ant Zucaro Date: Thu, 19 Jan 2017 21:51:07 +0000 (-0500) Subject: Add a script to create a data snapshot of the DB. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=691b08034b7f0eb263df1c6cdf709b8cfef5565b;p=xonotic%2Fxonstatdb.git Add a script to create a data snapshot of the DB. --- diff --git a/scripts/create_snapshot.shl b/scripts/create_snapshot.shl new file mode 100755 index 0000000..2f07d1a --- /dev/null +++ b/scripts/create_snapshot.shl @@ -0,0 +1,28 @@ +#!/bin/bash + +# This script is used to create data snapshots that don't disclose any +# identifying player or server information. + +psql -U xonstat -h localhost xonstatdb < ${DATE}_xonstatdb_snapshot.dmp