1. PublicWhip
  2. Untitled project
  3. PublicWhip v1

Commits

frabcus  committed fb9b045

Update for new laptop

  • Participants
  • Parent commits ab9e3f0
  • Branches master

Comments (0)

Files changed (1)

File build/getdb

View file
  • Ignore whitespace
 #! /bin/bash
 set -e
 
-cd ~/devel/publicwhip/
+cd ~/code/publicwhip/
 
 # Downloads dynamic tables from database on public web server sphinx,
 # and replaces the local database table with them.  Leave the text
 
 USER=publicwhip@publicwhip.org.uk
 
-echo "Fetching remote dynamic tables..."
-ssh $USER "mysqldump --add-drop-table pw_live pw_dyn_user pw_dyn_dreammp pw_dyn_dreamvote pw_dyn_auditlog pw_dyn_wiki_motion pw_dyn_newsletter >pw_dyn_tables.sql"
+ssh -q $USER "mysqldump --add-drop-table pw_live pw_dyn_user pw_dyn_dreammp pw_dyn_dreamvote pw_dyn_auditlog pw_dyn_wiki_motion pw_dyn_newsletter >pw_dyn_tables.sql"
 scp -q $USER:./pw_dyn_tables.sql pw_dyn_tables.sql
 
-echo "Fetching remote all tables..."
-ssh $USER "mysqldump --add-drop-table pw_live | bzip2 -c >pw_all_tables.sql.bz2"
+ssh -q $USER "mysqldump --add-drop-table pw_live | bzip2 -c >pw_all_tables.sql.bz2"
 scp -q $USER:./pw_all_tables.sql.bz2 pw_all_tables.sql.bz2
 
 # this is too much to do automatically, would keep making computer slow