From 72871ae04fa11a20a69099670baa3f1caaa52743 Mon Sep 17 00:00:00 2001 From: Nick Sergeant Date: Sat, 17 Oct 2015 15:00:33 -0400 Subject: [PATCH] Uncomment makefile for pulldb. --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index bbaf7b4..247552f 100644 --- a/Makefile +++ b/Makefile @@ -147,9 +147,9 @@ vagrant: @$(ssh-vagrant) '$(pm) rebuild_index --noinput;' pulldb: - # @ssh nick@snipt.net -p 55555 'sudo su -c "pg_dump snipt|gzip > /tmp/snipt.dump" postgres' - # @scp -q -P 55555 nick@snipt.net:/tmp/snipt.dump snipt.dump.gz - # @dropdb snipt + @ssh nick@snipt.net -p 55555 'sudo su -c "pg_dump snipt|gzip > /tmp/snipt.dump" postgres' + @scp -q -P 55555 nick@snipt.net:/tmp/snipt.dump snipt.dump.gz + @dropdb snipt @createdb snipt @cat snipt.dump.gz | gunzip | psql snipt @rm snipt.dump.gz