Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Wed Dec 17, 2008 2:26 am 
Offline
Junior Member

Joined: Tue May 20, 2008 3:00 am
Posts: 37
I thought I'd ask before doing anything that's either too much work or just stupid.

I've moved all my website files over to the Fedora 10 disk image also copied the httpd.conf and php.ini files to keep my settings, when I booted up the Fedora 10 image. Everything worked as it should. Now I'm wondering..

I've got about 4 subversion repositories set up in /opt/svn. Could I just move the whole svn dir over to the Fedora 10 disk image and would subversion and stuff still be working the way it should? Or am I safer with checking the repo's out and starting over?

Same with MySQL. I see all the data being stored in /var/lib/mysql, is it wise to just copy those files over to the new disk image. Or would it be better to export / import .sql files?

The subversion packages installed are both on version '1.5.4' and MySQL is 5.0.45 on the old and 5.0.67 on the new.


Top
   
PostPosted: Wed Dec 17, 2008 6:20 am 
Offline
Senior Member

Joined: Fri Sep 12, 2008 3:17 am
Posts: 166
Website: http://independentchaos.com
It generally it is always better to import/export, rather than copy a directory.

I'd say do an svn co and re-create your layout (see LINK). The same would go for your MySQL tables. I, personally, would recommend shutting down your webserver for awhile and then exporting your tables, or finding a way to cold export them. I think mysqldump was made for this kinda thing.


Top
   
 Post subject:
PostPosted: Wed Dec 17, 2008 10:57 am 
Offline
Junior Member

Joined: Fri Dec 12, 2008 1:24 pm
Posts: 23
on old server:
Code:
svnadmin dump myrepos > dumpfile


on new server:
Code:
svnadmin load newrepos < dumpfile


Top
   
 Post subject:
PostPosted: Wed Dec 17, 2008 1:04 pm 
Offline
Senior Member

Joined: Tue Apr 27, 2004 5:10 pm
Posts: 212
I agree with Melz. Using an intermediary svn dumpfile is by far the easiest way to do this.

BTW, just doing an svn co, you'd lose all historical data.


Top
   
 Post subject:
PostPosted: Wed Dec 17, 2008 7:05 pm 
Offline
Junior Member

Joined: Tue May 20, 2008 3:00 am
Posts: 37
Thanks alot! :)

Figured as much, but was just looking for an easy way to copy everything over.. but I followed your suggestions ;

Just now shutted down the old server, mysqldumped everything. Rebooted into the other disk image. There imported all the mysql stuff again. Works like a breeze so far.

As for SVN, figured as much with the historical data. Wouldn't be that much of a problem but the svn dumpfile is awesome! Didn't know that, so thanks alot for mentioning it :)

Repo's seem to be working fine as well.

Thanks again :D


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group