Results 1 to 9 of 9

Thread: How to roll back my back up? need help

  1. #1
    dr_zloba's Avatar
    dr_zloba is offline Member
    Join Date
    Sep 2009
    Location
    localhost
    Posts
    12

    Default How to roll back my back up? need help

    Category: back ups
    Server: Apache
    OS: Linux (shared hosting)
    Database: MySQL
    PHP: 5
    Sugar: Community Edition. 5.2.0i



    After crash i have:
    1. Database which used for SugarCRM day ago - no problems with it.
    2. Also i have backup file (.zip) i made day ago too - no problem with it too.

    What is the instruction how to implement this data back to SugarCRM right and reincarnate "day ago" version?

    I have just installed new fresh copy with new fresh database. But can not find any tools in admin section for uploading\using\restoring available backup files.
    I tried to add data in cofig.php about my "old" database. But i am getting authenticating error. So as i understand i can not just make "hot" switches of databases in config.php, am i right?
    Repair section just repairing itself Or i am doing something wrong.

    Thanks in advance.
    Last edited by dr_zloba; 2009-09-10 at 04:12 PM.

  2. #2
    salesagility's Avatar
    salesagility is offline Sugar Community Member
    Join Date
    Aug 2006
    Location
    UK
    Posts
    2,379

    Default Re: How to roll back my back up? need help

    you should unzip the sugarcrm zip file ... this will reinstate all your sugarcrm files

    And you need to restore your database ... what dd you use to take the dump?

  3. #3
    dr_zloba's Avatar
    dr_zloba is offline Member
    Join Date
    Sep 2009
    Location
    localhost
    Posts
    12

    Default Re: How to roll back my back up? need help

    Quote Originally Posted by salesagility View Post
    you should unzip the sugarcrm zip file ... this will reinstate all your sugarcrm files

    And you need to restore your database ... what dd you use to take the dump?
    For dump of sugarCRM files i used internal tool from the admin section. For dump of database i used external tool.

  4. #4
    salesagility's Avatar
    salesagility is offline Sugar Community Member
    Join Date
    Aug 2006
    Location
    UK
    Posts
    2,379

    Default Re: How to roll back my back up? need help

    Yes, but what tool did you use to do the MySQL backup .... then I can maybe help you use the same tool to restore

  5. #5
    dr_zloba's Avatar
    dr_zloba is offline Member
    Join Date
    Sep 2009
    Location
    localhost
    Posts
    12

    Default Re: How to roll back my back up? need help

    Quote Originally Posted by salesagility View Post
    Yes, but what tool did you use to do the MySQL backup .... then I can maybe help you use the same tool to restore
    The external tool called "angry admin". Usually i drop a mail to support@mysharedhosting.tld And admin restore "day ago" database.
    Also I have access to phpMyadmin will it help to do database back ups by my self?

  6. #6
    salesagility's Avatar
    salesagility is offline Sugar Community Member
    Join Date
    Aug 2006
    Location
    UK
    Posts
    2,379

    Default Re: How to roll back my back up? need help

    How big is the database dump file?

    If it's very large you should ask your hosting company to restore it. If it's under 10Mb you can probably do yourself

  7. #7
    dr_zloba's Avatar
    dr_zloba is offline Member
    Join Date
    Sep 2009
    Location
    localhost
    Posts
    12

    Default Re: How to roll back my back up? need help

    Quote Originally Posted by salesagility View Post
    How big is the database dump file?

    If it's very large you should ask your hosting company to restore it. If it's under 10Mb you can probably do yourself
    I have just done export of sql file, zip compression chosen, and it is 312 Kb. Is this abnormal? There was a lot of options for export but i left them in default mode.
    Last edited by dr_zloba; 2009-09-10 at 04:41 PM.

  8. #8
    salesagility's Avatar
    salesagility is offline Sugar Community Member
    Join Date
    Aug 2006
    Location
    UK
    Posts
    2,379

    Default Re: How to roll back my back up? need help

    OK ... it's not big ... unzip the SQL file.

    OK ... use phpmyadmin ...

    log into phpmyadmin

    Goto databases

    choose the database that you want to restore.

    THE NEXT BIT IS IMPORTANT

    Click on Export ... then save as file .... then go.

    This will make a backup of the database that you are about to trash ... a final safety check.

    Then click on structure ... scroll down to the bottom of the list of tables .... click on "Check All" ... this will select every table, then from the "with selected" dropdown, select "Empty" and then "OK" .... this will empty your database of all information but will keep the table structure intact

    Now, depending on whether the dump tries to recreate the tables the next bit will either work or not ... don't worry if it doesn't.

    Click on Import at the top of the screen ... then browse to the sql file you unzipped .... select it and press "OK"

    If it works, you' get a report saying so many rows created etc. GREAT ... you can now try your restored sugar.

    If it gives you "Creating tables" errors, then goto "structure" and "select all" as before ... but this time from the dropdown select "drop"

    This will delete all the tables ... then go back to "Import", select the sql dump file and the tables will be recreated with the data.

    GOOD LUCK .... you won't need it ... this is a relatively straightforward process but can be daunting doing it for the first time

  9. #9
    dr_zloba's Avatar
    dr_zloba is offline Member
    Join Date
    Sep 2009
    Location
    localhost
    Posts
    12

    Default Re: How to roll back my back up? need help

    Okay, thanks! for detailed manual and for your time. I will report back with my results.
    UPDATED: Thanks for prompt replay. I have just successfully passed through all steps. My copy of SugarCRM UP and running. Thanks once again.
    Last edited by dr_zloba; 2009-09-10 at 11:15 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 1
    Last Post: 2008-01-02, 07:20 AM
  2. Replies: 0
    Last Post: 2006-06-16, 05:33 PM
  3. roll back to older version
    By henmar in forum General Discussion
    Replies: 2
    Last Post: 2006-06-07, 01:46 PM
  4. Going from 4.0.0 back to 3.5.1
    By et2brute in forum Help
    Replies: 4
    Last Post: 2006-01-03, 02:03 PM
  5. Can't Log back in
    By rbamburg in forum Help
    Replies: 4
    Last Post: 2005-11-21, 06:09 PM

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
  •