Complete Website transfer from One Host to another Host - Please advise

Discussion in 'Web Hosting' started by ross007, May 29, 2012.

  1. #1
    Hi Guys and gals.

    First of all let me thank the Forum and you guys for the great support I'm getting. IM is a very difficult skill to acquire especially as you need to be trained up on a lot of technical processes.

    I have just sold a php video script site and need to transfer from my host to the clients different hosting company. I would be indebted for the best and easy way to transfer without any technical difficulties. For example, what I need to back up, files, databases and so on.

    Thank you
     
    ross007, May 29, 2012 IP
  2. Anil Strivastava

    Anil Strivastava Peon

    Messages:
    102
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Step 1 - Backing up using SSH


    1. Connect to your host via SSH, login and run: mysqldump --opt -u user -p dbname > {path}/backup.sql
    2. You will be asked to type out your password once you run that command, do so and click enter. It may take some time for it to respond, but once completed you should be brought back to where you started (bash/command line).
    Congratulations! You successfully backed up your database using SSH.

    Restoring using SSH

    Note: Some hosts do not offer SSH access, I suggest contacting your host and asking him/her if SSH access is enabled and if so the details. A good program to use for connecting via SSH is PuTTY (Get it at: http://www.chiark.greenend.org.uk/~sgtatham/putty/). Don't know how to use it? Search on Google for a tutorial.
    1. Connect to your host via SSH, login & run: mysql -u user -p dbname < {path}/backup.sql
    2. You will be asked to type out your password once you run that command, do so and click enter. It may take some time for it to respond, but once completed you should be brought back to where you started (bash/command line).
    Congratulations! You have successfully restored your database using SSH.

    For Files , Download all the file from the current host , and upload it to the New host

    Done ....
     
    Anil Strivastava, May 29, 2012 IP
  3. ross007

    ross007 Member

    Messages:
    130
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    26
    #3
    Thank you very much Anil. I really appreciate your advice on an excellent way to back up and transfer files and database to another host.
     
    ross007, May 29, 2012 IP
  4. Stylex Networks

    Stylex Networks Member

    Messages:
    38
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    31
    #4
    Check if the client is using cpanel or plesk or similar. There are built in tool in these to auto transfer websites without any hiccups.
     
    Stylex Networks, May 29, 2012 IP
  5. linux7802

    linux7802 Active Member

    Messages:
    110
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #5
    Yes,first confirm which control panel you are using on both the servers because if both the servers using the same control panel then you can easily migrate the hosting account from one server to another server......but if you are using two different control panel then migration job will be much more difficult
     
    linux7802, May 29, 2012 IP
  6. Dj.c

    Dj.c Peon

    Messages:
    118
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Wow .. fantastic explanation from Anil. Thumb up for you bro.
     
    Dj.c, Jun 1, 2012 IP
  7. michaelhomas83

    michaelhomas83 Peon

    Messages:
    141
    Likes Received:
    0
    Best Answers:
    1
    Trophy Points:
    0
    #7
    You need to take a backup of the php files and other folder which is required

    then take the backup of mysql

    Take the backup of mysql and run that sql on new server

    it will install the database and upload the file...........change the user name and password on the connection file of mysql

    it will work
     
    michaelhomas83, Jun 1, 2012 IP
  8. PromptSpace-Kushal

    PromptSpace-Kushal Member

    Messages:
    169
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    40
    #8
    Most webhosts out there do offer free transfer of your website.
     
    PromptSpace-Kushal, Jun 15, 2012 IP
  9. dumindushalika

    dumindushalika Notable Member

    Messages:
    1,885
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    240
    #9
    Yep. Contact your web host before you transfer the site. Sometimes, they may give you web site transfer service for free.
     
    dumindushalika, Jun 15, 2012 IP