Results 1 to 8 of 8

Thread: Backup data in Sugar

  1. #1
    nmpaulcp is offline Sugar Community Member
    Join Date
    Dec 2005
    Posts
    38

    Question Backup data in Sugar

    I was wondering what the best way to backup a copy of the data in Sugarcrm 4.xx in case of system failure or other problem that would allow me to reinstall Sugarcrm and then reintroduce the data to the MySql DB. I am currently running 4.0 on XAMP. on my Windows 2000 server.
    What is everyone else doing for backup?

  2. #2
    atheimer98 is offline Sugar Community Member
    Join Date
    Dec 2005
    Posts
    202

    Default Re: Backup data in Sugar

    For Windows, create a scheduled task that does a sql dump (creates a yourfile.sql file) every morning or nite. If anything ever happend you would be able to install sugar back to your current version and restore your db using the most recent sql dump file.
    In linux, you would create a cron job that does the same thing.

  3. #3
    sugarcare is offline Sugar Community Member
    Join Date
    Jan 2006
    Posts
    405

    Default Re: Backup data in Sugar

    does this backups the attachments/notes too? Probably if they store the notes in the DB.

  4. #4
    longreach Guest

    Default Re: Backup data in Sugar

    Notes are in the DB - attachments are in cache/upload.

  5. #5
    nmpaulcp is offline Sugar Community Member
    Join Date
    Dec 2005
    Posts
    38

    Default Re: Backup data in Sugar

    Thanks for the replies. I know how to schedule tasks but as for setting up the SQL dump, I'm lost .

  6. #6
    sugarcare is offline Sugar Community Member
    Join Date
    Jan 2006
    Posts
    405

    Default Re: Backup data in Sugar

    there is a script that comes with mySQL mysqldump (check the actual command) that dumps the entire database to a file. You move this to a CD or tape or external source.

    But if attachments are stored external to DB, then you have to write a script to copy them also. MysqlDump only backups the database, not files.

  7. #7
    atheimer98 is offline Sugar Community Member
    Join Date
    Dec 2005
    Posts
    202

    Default Re: Backup data in Sugar

    Check out the comments on this post there are some great tips for creating a batch file for windows mysql dumps.

    http://dev.mysql.com/doc/refman/5.0/en/mysqldump.html

  8. #8
    nmpaulcp is offline Sugar Community Member
    Join Date
    Dec 2005
    Posts
    38

    Default Re: Backup data in Sugar

    Quote Originally Posted by atheimer98
    Check out the comments on this post there are some great tips for creating a batch file for windows mysql dumps.

    http://dev.mysql.com/doc/refman/5.0/en/mysqldump.html
    Thanks but I am still lost. I was hoping I might be able to use the php utility in Xamp and export the sql file. Then Reinstall it to a new installation of Sugar if needed. I guess that would be too easy! Damn I wish I had a bit more knowledge about all these commands, php, and sql related stuff.
    Last edited by nmpaulcp; 2006-01-18 at 02:33 PM.

Thread Information

Users Browsing this Thread

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

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
  •