CRM Open Source Business & Social CRM Software

Results 1 to 2 of 2

Thread: Migrating Sugar Instances to a New Box

  1. #1
    Jacob's Avatar
    Jacob is offline Senior Member
    Join Date
    Oct 2004
    Posts
    331

    Default Migrating Sugar Instances to a New Box

    There is a forum post asking for help migrating. This is my response. Happy to get any feedback/enhancements. This will then migrate to wiki and/or the developer site.

    Thanks,
    Jacob

    ------------------------------------------

    I just took a quick look and did not see good information out there.

    Here is a quick summary of the steps that I would and have taken in the past:
    1. Notify Users.
    2. Synchronize all files to the new web server. rsync is a good command for this or xcopy on windows systems. You want to make sure you set it up so that you can run the command again later to update changed files.
    3. Export the database. For MySQL the easiest command is mysqldump. This creates a big file that you can import on the other side. Most DBs will have an export function in their UIs. Write the output of the mysqldump command into a file.
    Code:
    mysqldump --opt mydatabase > sql.dump
    4. Login to the new database and restore the backup file. You can either use the same web UI, or load the dump script from before. Inside the MySQL command line you can use'
    Code:
    \. sql.dump
    If you started MySQL from the folder where you put sql.dump. One caution, if you run this file on the same server that you exported it from, you will loose all of your data.
    5. Configure config.php on the new web server and make sure the system works well.
    6. Stop the CRM system (block access to the folder is an affective way) to ensure there is no accidental use.
    7. Re-run the file sync (make sure to copy your config.php from the new server to some other location and then copy it back, or reconfigure it after the file sync to point to the new database).
    8. Re-run the database sync
    9. Verify that the system is working as expected
    10. Send the new URL to the users (or change the names erver to redirect the old URL).

    If you happen to only be using MyISAM database tables and you are keeping on the same system architecture you can stop the MySQL engine, copy all of the files to the appropriate folder on the new database and then grant permissions to the new DB. MySQL will automatically look where the files should be.

    I hope this helps.
    Jacob

  2. #2
    ptemplin7 is offline Sugar Community Member
    Join Date
    Jun 2007
    Location
    Puget Sound Washington
    Posts
    380

    Default Re: Migrating Sugar Instances to a New Box

    Great start.

    One thing I would add for all those newbies out there is a bit more coding. Like I've got the mysqldump into the .sql file. Now what are the ways to restore it. You give one there are others that may be easier to understand.

    There are some other threads that give a good sequence. lets add a step by step procedure if possible.

    Thanks Paris

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Sugar is slow - some ideas to improve the speed
    By mycrmspacegunnar in forum General Discussion
    Replies: 20
    Last Post: 2011-05-24, 04:02 PM
  2. Problem with two sugar instances
    By Meex21 in forum Developer Help
    Replies: 3
    Last Post: 2007-11-23, 11:12 AM
  3. How to run two instances of Sugar on the same server
    By southwestcrm in forum Installation and Upgrade Help
    Replies: 1
    Last Post: 2007-11-02, 05:26 PM
  4. Migrating Data from SF to Sugar
    By ikeo03 in forum Help
    Replies: 1
    Last Post: 2006-09-17, 05:04 AM

Bookmarks

Posting Permissions

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