mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-22 05:18:51 +00:00
Add script to pull down and mirror the prod database
This commit is contained in:
7
script/mirror_prod.sh
Executable file
7
script/mirror_prod.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
echo "drop database open_food_web_dev" | psql -h localhost -U ofw open_food_web_test
|
||||
echo "create database open_food_web_dev" | psql -h localhost -U ofw open_food_web_test
|
||||
ssh ofw-prod "pg_dump -h localhost -U openfoodweb openfoodweb_production |gzip" |gunzip |psql -h localhost -U ofw open_food_web_dev
|
||||
Reference in New Issue
Block a user