From d9855caf39d0a82023c1d3d310d6ad4540b2e200 Mon Sep 17 00:00:00 2001
From: Eric Rasmussen <erasmussen2@unl.edu>
Date: Fri, 23 Apr 2010 16:08:08 +0000
Subject: [PATCH] updated notes on importing dev to local

---
 README | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/README b/README
index 7202b2ef..978eadc6 100644
--- a/README
+++ b/README
@@ -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 *
+    
 
 
 *******
-- 
GitLab