Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Re: [Taki-x] Moving to new server instructions

Quote Reply
Re: [Taki-x] Moving to new server instructions In reply to
Hi,

Its not a simple task.

1) You have to compress the cgi-bin files (tar cvvf cgibin.tar *)
2) You have to compress the www files (tar cvvf backup.tar *)
3) Backup your database (mysqldump --add-drop-table -u=USERNAME -pPASSWORD DATABASE_NAME > backup.sql)
4) Download all these files locally
5) Uploads to your new server
6) Decompress them (in their correct folders!), with: tar -xof file.tar
7) Then, you need to run a `grep` on the files, something like:

Replace /old/ with your old path to the admin folder
Replace /new/ with your NEW path to the admin folder

perl -p -i -e 's|/old/|/new/|g' `grep -r -l '/old/' .`

8) Re-import your database, with:

mysql -u=USERNAME -pPASSWORD DATABASE_NAME < backup.sql

Thats pretty much it - although I've put it in very simple terms =)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!

Last edited by:

Andy: Feb 21, 2009, 12:46 AM
Subject Author Views Date
Thread Moving to new server instructions Taki-x 23843 Aug 6, 2007, 12:34 PM
Thread Re: [Taki-x] Moving to new server instructions
Taki-x 23137 Aug 28, 2007, 9:49 AM
Thread Re: [Taki-x] Moving to new server instructions
Andy 23122 Aug 29, 2007, 12:46 AM
Thread Re: [Andy] Moving to new server instructions
brewt 23090 Aug 29, 2007, 12:56 AM
Thread Re: [brewt] Moving to new server instructions
Andy 23143 Aug 29, 2007, 12:58 AM
Thread Re: [Andy] Moving to new server instructions
Taki-x 23069 Aug 29, 2007, 10:48 AM
Thread Re: [Taki-x] Moving to new server instructions
tandat 23191 Aug 29, 2007, 7:42 PM
Thread Re: [tandat] Moving to new server instructions
brewt 23125 Aug 29, 2007, 7:54 PM
Post Re: [brewt] Moving to new server instructions
tandat 23248 Aug 29, 2007, 11:02 PM
Thread Re: [Taki-x] Moving to new server instructions
Andy 23110 Aug 30, 2007, 2:03 AM
Thread Re: [Andy] Moving to new server instructions
Taki-x 23041 Aug 30, 2007, 11:11 AM
Thread Re: [Taki-x] Moving to new server instructions
Andy 23076 Aug 31, 2007, 3:18 AM
Thread Re: [Andy] Moving to new server instructions
Taki-x 23183 Sep 1, 2007, 12:57 AM
Thread Re: [Taki-x] Moving to new server instructions
Andy 23030 Sep 1, 2007, 5:04 AM
Thread Re: [Andy] Moving to new server instructions
Taki-x 23112 Sep 2, 2007, 12:30 PM
Thread Re: [Taki-x] Moving to new server instructions
Andy 23043 Sep 2, 2007, 12:34 PM
Thread Re: [Andy] Moving to new server instructions
Taki-x 23032 Sep 2, 2007, 1:25 PM
Post Re: [Taki-x] Moving to new server instructions
Andy 23052 Sep 2, 2007, 1:28 PM
Thread Re: [Taki-x] Moving to new server instructions
Andy 22993 Sep 6, 2007, 1:44 AM
Thread Re: [Andy] Moving to new server instructions
Taki-x 22989 Sep 6, 2007, 10:10 AM
Post Re: [Taki-x] Moving to new server instructions
brewt 23004 Sep 6, 2007, 12:18 PM
Thread Re: [Taki-x] Moving to new server instructions
brewt 23064 Sep 2, 2007, 1:46 PM
Thread Re: [brewt] Moving to new server instructions
Taki-x 22984 Sep 5, 2007, 9:03 AM
Thread Re: [Taki-x] Moving to new server instructions
Taki-x 22968 Sep 5, 2007, 1:08 PM
Post Re: [Taki-x] Moving to new server instructions
tandat 22961 Sep 5, 2007, 9:33 PM