Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-13-2006, 07:17 AM
Starter Member
 
Posts: 2
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:
Code:
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!
Reply With Quote
  #2 (permalink)  
Old 09-17-2006, 12:10 AM
Former Zimbran
 
Posts: 294
Default

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":

Code:
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,
__________________
Regards,

Chintan Zaveri
(Yet another ZIMBRAN!)

"Dhundhne par Bhagwan bhi ..."
Reply With Quote
  #3 (permalink)  
Old 09-18-2006, 07:00 AM
Starter Member
 
Posts: 2
Default

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.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.