Commit d9855caf authored by Eric Rasmussen's avatar Eric Rasmussen
Browse files

updated notes on importing dev to local

parent 5923b9c9
......@@ -49,6 +49,25 @@ when importing full_dump.sql, you must modify certain rows in the tables elggdat
that they pertain to the local elgg site instance. (so if you see something like
http://ucommjuhl.unl.edu/UNL_Elgg/elgg, change it!)
*******
** Notes on importing data for dev to local machine:
*******
-ftp a copy of the database to your machine
scp unl_social_2010-04-22_00h10m.Thursday.sql usernameonlocalmachine@yourmachine.com:/Path/To/Transer/To
-import it
mysql -u username -p < /Path/To/unl_social_2010-04-22_00h10m.Thursday.sql
-Set the correct site url within the unl_social database:
mysql -u username -p
use unl_social;
UPDATE elggsites_entity SET url='http://ucommbieber.unl.edu/workspace/UNL_Elgg/elgg/' WHERE guid=1;
UPDATE elggdatalists SET value = '/Users/bbieber/Documents/workspace/UNL_Elgg/elgg/' WHERE name = 'path';
UPDATE elggdatalists SET value = '/Users/bbieber/Documents/workspace/UNL_Elgg/elgg_data/' WHERE name = 'dataroot';
-zip up elgg_data and ftp that
zip -r newfilename elgg_data
-replace your local copy of elgg_data with this one and make sure apache (could be _www or apache or ?) has write access to it
cd path/to/elgg_data
sudo chown -R _www *
*******
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment