From: Ant Zucaro Date: Sun, 11 Aug 2013 14:01:11 +0000 (-0400) Subject: Add drop and load convenience script. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=8549ee0f1aeb61a78029bc9f104d30a31a737500;p=xonotic%2Fxonstatdb.git Add drop and load convenience script. --- diff --git a/scripts/drop_and_load.shl b/scripts/drop_and_load.shl new file mode 100755 index 0000000..8049afc --- /dev/null +++ b/scripts/drop_and_load.shl @@ -0,0 +1,15 @@ +#!/bin/bash + +# user doing the load - must be superuser, and must have access to postgres db +USER=xonstat + +# full path to the backup file +BACKUPFILE=$1 + +psql -U $USER -h localhost postgres <