Results 1 to 3 of 3

Thread: Open Source Not Restarting From Backup Correctly

  1. #1
    Join Date
    Sep 2006
    Rep Power

    Default Open Source Not Restarting From Backup Correctly

    I'm running the open source version (4.0) on a server, and I copy the zimbra directory each morning around 4 AM. I do so by stopping the server with zmcontrol, copying the zimbra directory to a different folder, and then starting the server.

    When I ran previous versions, I never had a problem with this, but after upgrading to version 4 I end up with all of the email that was received after the backup being queued. Running zmcontrol status shows that antispam and antivirus are not running, but simply restarting the server does not get them running again. I have to stop the server, run /opt/zimbra/libexec/zmfixperms, and start the server again to get it running.

    The only reason that I figured out that zmfixperms would get the server to start again was that I was trying to get the wiki to work in 4.0, and one of the forum posts that I read said you had to change some permissions to get it working. I did that, and the next day when the problem above occurred, I just assumed that I needed to run zmfixperms because I messed up some permissions. Unfortunately, it's continued to occur each day, and I haven't been able to find any information relating to it.

    Here is my nightly backup script:
    su - zimbra -c "zmcontrol stop"
    cp -r /opt/zimbra /home/backup/backups
    chown -Rf backup /home/backup/backups/opt-zimbra
    su - zimbra -c "zmcontrol start"
    Any insight on this would be greatly appreciated. Thanks!

  2. #2
    Join Date
    Feb 2006
    Pune, India
    Rep Power


    yes, to me it does look like your nightly backup is incorrect.

    You shouldn't use "cp -Rf ..."

    You should be using 'rsync' instead.

    Try the following in place of "cp -r /opt/zimbra /home/backup/backups":

    rsync -arlHKpogDt /opt/zimbra/ /home/backup/backups/zimbra
    There are also a couple of scripts floating around on the backup and recovery threads.

    My 2 Cents,

    Chintan Zaveri
    (Yet another ZIMBRAN!)

    "Dhundhne par Bhagwan bhi ..."

  3. #3
    Join Date
    Sep 2006
    Rep Power


    I was actually using rsync previously, and that errored out as well. Right now I've modified my backup script to simply run zmfixperms after the backup runs, and it's gotten it working for now.

    I don't understand, though, how that script could cause a permission change to occur.

Similar Threads

  1. Hot backup question on open source?
    By cfigurelli in forum Administrators
    Replies: 7
    Last Post: 10-09-2008, 01:43 AM
  2. Installation Problem
    By Ju-Pao in forum Installation Help
    Replies: 39
    Last Post: 05-15-2007, 02:54 PM
  3. Error message in Server status
    By Max Ma in forum Installation
    Replies: 20
    Last Post: 04-19-2007, 08:55 AM
  4. The mailbox and mta dies in FC4 GA version
    By meikka in forum Installation
    Replies: 72
    Last Post: 03-16-2006, 04:30 PM
  5. M3 problem with shares
    By titangears in forum Users
    Replies: 4
    Last Post: 01-12-2006, 12:01 PM

Posting Permissions

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