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 12-03-2010, 12:15 AM
Moderator
 
Posts: 1,209
Default Upgrade To 6.0.9 - Backups Crontab Borked

We just upgraded our hosting farm from 6.0.8+P3 to 6.0.9 and noticed that the crontabs for running backups were borked by the upgrade.

Originally we had:
Code:
zimbra@viognier:~> crontab -l | grep backup
0 1 * * 6 /opt/zimbra/bin/zmbackup -f --noZip --includeHsmBlobs -a all 
0 1 * * 0-5 /opt/zimbra/bin/zmbackup -i --noZip --includeHsmBlobs
0 0 * * * /opt/zimbra/bin/zmbackup -del 12d
zimbra@viognier:~>
But after the backup we only had:
Code:
zimbra@viognier:~> crontab -l | grep backup
0 0 * * * /opt/zimbra/bin/zmbackup -del 12d
zimbra@viognier:~>
Anyone else see this before I file a bug report?

Other than that (and the known log rotate issue), no problems we see so far.

Hope that helps,
Mark
__________________
___________________________________
L. Mark Stone, CIO


"Uptime. All the time."

477 Congress Street | Portland, ME 04101-3431 | (207) 772-5678

proactive maintenance and monitoring | technology consulting
Zimbra groupware | EMR implementations | private cloud hosting
Reply With Quote
  #2 (permalink)  
Old 12-03-2010, 12:28 AM
Zimbra Consultant & Moderator
 
Posts: 20,313
Default

There's no change in the crontab for my single server after the upgrade:

Code:
0 1 * * 6 /opt/zimbra/bin/zmbackup -f   -a all 
0 1 * * 0-5 /opt/zimbra/bin/zmbackup -i  
0 0 * * * /opt/zimbra/bin/zmbackup -del 1m
__________________
Regards


Bill
Reply With Quote
  #3 (permalink)  
Old 12-03-2010, 01:29 AM
Advanced Member
 
Posts: 198
Default

Yeah, there is no change in my crontab too.... after the upgrade....
Reply With Quote
  #4 (permalink)  
Old 12-03-2010, 04:59 AM
Moderator
 
Posts: 2,207
Default

Same changes on all my crontabs, all my customers' crontabs and friends' crontab 8)
We're all using "--noZip", that's why...

The install scripts make a copy of the backup part of the crontab (normal) in order to recreate the crontab the way it was after the upgrade.

The problem: while the scripts make a "stupid" copy (using crontab -l), they use the ZCS tool to create the crontab (zmschedulebackup iirc).

This tool is not able to handle "--noZip" on its command line.

So the two full and incremental lines get "deleted" because the tool is not able to deal with the additional parameter.

I did not open (nor look for) a bug, because I'm used to modify the crontab after each upgrade (in order to add "--noZip").
Reply With Quote
  #5 (permalink)  
Old 12-07-2010, 10:52 AM
Moderator
 
Posts: 1,432
Default

Yes, easiest thing after install is to do zmschedulebackup -D to set up the default within crontab. Then use crontab -e to edit and restore your custom configurations.

--includeHsmBlobs is probably also going to mess up the crontab on upgrade, as you might guess.
__________________
Elliot Wilen
Berkeley, CA

Don't forget to enter your Zimbra version in your forum profile.
Reply With Quote
  #6 (permalink)  
Old 12-09-2010, 10:15 AM
Junior Member
 
Posts: 5
Default

I had a similar problem when I upgraded from 5.0.15 to 6.0.8. Here is the bug report if you want to vote for it.

Bug 50584 - zmsetup upgrade does not properly handle zmbackup zipStore option

Chris
Reply With Quote
  #7 (permalink)  
Old 12-09-2010, 10:16 AM
Moderator
 
Posts: 1,209
Default

Quote:
Originally Posted by ewilen View Post
Yes, easiest thing after install is to do zmschedulebackup -D to set up the default within crontab. Then use crontab -e to edit and restore your custom configurations.

--includeHsmBlobs is probably also going to mess up the crontab on upgrade, as you might guess.
With this upgrade we started to do a crontab -l and direct the output to a backup file before the upgrade, and then do the same after the upgrade to a different file, and lastly run a diff across the two files to see what Zimbra has changed.

It's not just the backup schedule changing as part of the upgrade that we like to check!

All the best,
Mark
__________________
___________________________________
L. Mark Stone, CIO


"Uptime. All the time."

477 Congress Street | Portland, ME 04101-3431 | (207) 772-5678

proactive maintenance and monitoring | technology consulting
Zimbra groupware | EMR implementations | private cloud hosting
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.