Results 1 to 2 of 2

Thread: Correct use of Admin/Backups

  1. #1
    bleggee is offline Sugar Community Member
    Join Date
    Jan 2010
    Posts
    58

    Wink Correct use of Admin/Backups

    I tried to run Admin/Backups and entered a folder name of "Desktop" and a filename of "SugarCRM-Backup".
    I clicked the "Confirm Settings" button, all was good. So I clicked the "Run Backup" button. About a minute and a half later, I get the message:
    Backup successfully stored as Desktop/SugarCRM-Backup (23723756 bytes).

    BUT I cannot find the backup file anywhere on my Server (using Locate command on Linux), nor on my local computer. I have searched for a file named "Desktop" and/or "SugarCRM-Backup" ... found nothing.

    SO MY QUESTION IS:
    Does anybody know how this Backup feature is supposed to work, and where I would look for the output file?

    Thanks all.
    Brian

  2. #2
    kuske's Avatar
    kuske is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Germany
    Posts
    2,597

    Default Re: Correct use of Admin/Backups

    The filename in the Backup screen is an absolute filename on the server running sugarcrm.

    So in Windows it should be somthing like:
    D:\backup\sugarcrm
    in Linux something like:
    \var\backup\sugarcrm

    The filename should be a zip-Filename like "mybackup.zip" so you can open it with any unzipper again.

    The apache process (or IIS) must be able to write to this directory.

    The case of "desktop" the file should be found in directory .../sugarrrot/desktop/.

    In my productive installation I changed the module /modules/Administration/Backups.php to set a default directory and filename to write these backups always in the same way and naming like this:

    PHP Code:
    ...
    $backup_dir "";
    $backup_zip "";
    $run        "confirm";
    $input_disabled "";
    global 
    $mod_strings;
    $errors = array();
     
    //SET DEFAULTs start
    $backup_dir $_SERVER["DOCUMENT_ROOT"]."/backup/";
    $backup_zip str_replace(array(":","/","."),"_",$sugar_config["site_url"])."_".date("Ymd_Hms").".zip";
    //SET DFAULTs end
    ... 
    Harald Kuske
    Pre-Sales Engineer Central Europe

    SUGARCRM Deutschland GmbH
    Erika-Mann-Str. 53, 80636 Munich, Germany
    Email: hkuske@sugarcrm.com
    Home: http://www.sugarcrm.com


Thread Information

Users Browsing this Thread

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

Similar Threads

  1. BACKUP SugarCRM backups up everything?
    By bleggee in forum General Discussion
    Replies: 6
    Last Post: 2010-01-27, 02:35 PM
  2. Backups/Restore questions
    By mem94566 in forum Help
    Replies: 7
    Last Post: 2008-04-13, 08:56 AM
  3. Upgrading from 4.5.1b to 5.0 ---> Backups Error!
    By NYCCAH in forum Installation and Upgrade Help
    Replies: 0
    Last Post: 2008-04-07, 05:50 PM
  4. Backups
    By rlbyrd in forum General Discussion
    Replies: 2
    Last Post: 2006-09-18, 10:57 AM

Tags for this Thread

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
  •