SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Addict bbparis's Avatar
    Join Date
    Aug 2008
    0 Post(s)
    0 Thread(s)

    Move to a new server


    I'm trying to move my data ( database + contents ) from the old server to a new one, what is the best way to transfer everything ? because my method is old, move site by site, and after move databases files to the new server and restore them on the new server to get them work fine. I don't know if there is a way to do that by SSH, like move everything between 2 servers ( old and new ) by some SSH commands ...maybe ?

    Thanks in advance for your help.

  2. #2
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Melbourne, AU
    460 Post(s)
    8 Thread(s)
    Do you have CPanel? If you do, it has a button you click to do a full site backup. Then you can transfer the backup file to the new server via SSH and restore the site in a few clicks—database and all.

  3. #3
    SitePoint Guru
    Join Date
    Nov 2004
    1 Post(s)
    0 Thread(s)
    I've had to migrate hundreds of sites, and the way that we did them was to SSH to the old server, which had the database AND the web files on it. We would take a mysql dump of the database, rsync the files across to the new server (web and DB), reimport the MySQL dump data to the new database and you're done. The beauty of rsync is that it's incremental too, so you can copy it all over, make sure it's working OK, then perform another rsync in case anything new was added to the site and you're done. Only down side is that you can't do an incremental update of the database itself so you do need to do a full import of that.

    The actual process that I used was something like this:

    1. Disable old site if possible
    2. SSH in to old server
    3. Take a MySQL dump
    4. RSync all web and DB files to new server
    5. Import MySQL data
    6. Edit site config file to point to new database
    7. Test site
    8. If all is well edit the old site config to point to new database
    9. Enable new site
    10. Repoint DNS to new server

    Think that was it


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts