Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Re: [Triffid] Server issues

Quote Reply
Re: [Triffid] Server issues In reply to
Hi. Your best bet would be to log in via SSH (I'm assuming they give you access to this?), and type something like;

Quote:
mysqldump --add-drop-table -uSQLUsername -pSQLPassword database_name > database_backup.sql

You obviously need to change over the username/password/database name/etc.

Then, once you have all your databases backed up (you will need to do this a couple of times, if you have several databases).

Now, you need to backup your whole folder... You need to 'cd' into your 'cgi-bin' folder, and HTML folder first, otherwise the whole server will be backed up (so it will die).

Quote:
tar -cvvf backup.tar *

....this will compress all the files, and hold their permissions.

You then need to go into SSH on your new server, and type something like;


Quote:
wget http://www.yoursite.com/backup.tar

This should grab the backup.tar file, with a server-to-server transfer (the fastest method by far, as it cuts out having to download it to your PC first).

Then, you need to decompress it;

Quote:
tar -xof backup.tar

.. and thats pretty much it.

You will need to change paths in the scripts, as they will not match up to the new server. The above should hopefully give you a good enough idea on how to move your site :)

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!
Subject Author Views Date
Thread Server issues Triffid 2155 May 7, 2004, 4:37 AM
Thread Re: [Triffid] Server issues
Andy 2083 May 7, 2004, 5:54 AM
Thread Re: [Andy] Server issues
Triffid 2040 May 8, 2004, 1:40 PM
Post Re: [Triffid] Server issues
Andy 2056 May 9, 2004, 2:54 AM
Post Re: [Triffid] Server issues
brewt 2032 May 8, 2004, 2:55 PM