Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Miving site from 1 server to next

Quote Reply
Miving site from 1 server to next
Hi all,

Whats the best way to move my entire site from 1 server to another, I know I can tar and zip it up on the server then download the compressed files.

Whats the correct command line for this from the unix prompt?

Thanks in Advance.


Regards

MDJ1
http://www.isee-multimedia.co.uk
Quote Reply
Re: Miving site from 1 server to next In reply to
Hi,

You should cd to the directory links is in and:

tar czvpf backup.tar.gz links

Then, dump your data with:

mysqldump -uUSERNAME -pPASSWORD --add-drop-table DATABASE > data.txt

and with those two files you can move your site easily.

Cheers,

Alex

--
Gossamer Threads Inc.
Quote Reply
Re: Miving site from 1 server to next In reply to
Thanks Alex,

PS you know i was having problems with the categories, you asked me to send you a backup. What do you want sent?


Regards

MDJ1
http://www.isee-multimedia.co.uk
Quote Reply
Re: Miving site from 1 server to next In reply to
Just for a dumb like me: could anyone give me a shorthand of instructions for tar to unpack the created archives?

Thanks!


Quote Reply
Re: Miving site from 1 server to next In reply to
Hi,

To extract the tar file:

tar xzvpf backup.tar.gz

and to restore the mysql data

mysql -uUSERNAME -pPASSWORD DATABASE < data.txt

Cheers,

Alex

--
Gossamer Threads Inc.
Quote Reply
Re: Miving site from 1 server to next In reply to
Alex,

But if we are moving to another server that it have links 1 to links 2 what we have to do, we have try all on this post, but when we try to use the database it don't work.

Thanks

Quote Reply
Re: Miving site from 1 server to next In reply to
If I'm not mistaken, don't you also need to update the def files for the new server's database info? Or is there an automated way of getting the script to update those files?

Dan