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 03-04-2011, 08:02 AM
Member
 
Posts: 14
Default zmschedulebackup not working properly

I have problems changing my backup schedule. I can change full (f) and incremental (i) backup schedule as expected but I can't change the deletion schedule. In fact it says 'schedule modified' but if i query again no deletion schedule is shown. It seems the only way to get any deletion is to reschedule DEFAULT (zmschedulebackup -D), then i get the 1m deletion entry back. Has anyone experienced the same?
Reply With Quote
  #2 (permalink)  
Old 03-11-2011, 05:00 PM
Moderator
 
Posts: 1,432
Default

No, I haven't. Is this a fresh install of ZCS 7?

You can manually change the schedules in the crontab file with (as zimbra) crontab -e. It's not the recommended method but it's been necessary in the past, in order to set certain zmbackup options that weren't available in zmschedulebackup. It's always worked fine for me for this purpose.

However, you may lose those changes on upgrade, so be sure to keep track of what you've done.
__________________
Elliot Wilen
Berkeley, CA

Don't forget to enter your Zimbra version in your forum profile.
Reply With Quote
  #3 (permalink)  
Old 03-14-2011, 01:34 AM
Member
 
Posts: 14
Default

No, it wasn't a fresh install. I upgraded from 6.0.10. Thanks a lot for the crontab hint. I'll use this meanwhile.

Joerg
Reply With Quote
  #4 (permalink)  
Old 03-14-2011, 07:58 AM
Member
 
Posts: 14
Default

Hem, it seems changes made to delete schedule are actually written into zimbra's crontab. But you can't see them using zmschedulebackup -q.
Reply With Quote
  #5 (permalink)  
Old 03-14-2011, 06:46 PM
Moderator
 
Posts: 1,432
Default

I'm still on 6, but this is what I get
Code:
zmschedulebackup -q
Current Schedule:

	f 0 1 * * 6 -a all --noZip --mail-report
	i 0 1 * * 0-5 --noZip --mail-report
	d 1m 0 0 * * * --mail-report
__________________
Elliot Wilen
Berkeley, CA

Don't forget to enter your Zimbra version in your forum profile.
Reply With Quote
  #6 (permalink)  
Old 03-15-2011, 12:10 PM
Member
 
Posts: 14
Default

OK, this is what I get:
Code:
zmschedulebackup -q
Current Schedule:

        i 0 1 * * 1-6
        f 0 1 * * 0 -a all
and this comes from crontab -e (I didn't change anything manually, used this one: zmschedulebackup -R i "0 1 * * 1-6" f "0 1 * * 0" d 14d "0 12 * * 0" ):
Code:
# BACKUP BEGIN
0 1 * * 1-6 /opt/zimbra/bin/zmbackup -i
0 1 * * 0 /opt/zimbra/bin/zmbackup -f -a all
0 12 * * 0 /opt/zimbra/bin/zmbackup -del  14d
# BACKUP END
Strange, isn't it?!
Reply With Quote
  #7 (permalink)  
Old 03-15-2011, 02:56 PM
Moderator
 
Posts: 1,432
Default

Maybe try zmschedulebackup -D, which will restore backup to default schedule. Then repeat zmschedulebackup -q and see what you get. If it gives you your schedule properly with a "d" line, enter zmschedulebackup commands one at a time and do zmschedulebackup -q after each one.

Also, are you sure that the delete jobs are taking place?
__________________
Elliot Wilen
Berkeley, CA

Don't forget to enter your Zimbra version in your forum profile.
Reply With Quote
  #8 (permalink)  
Old 03-31-2011, 03:04 AM
Beginner Member
 
Posts: 1
Default

Hello,

I have the same issue.

update from 6.0.10 -> 7.0.0 -> 7.0.1

I see my backup place growing, growing too much.
I list my /opt/zimbra/backup/sessions/ and I see too much sub-folders names *full* or *incr*

Surprise, zmchedulebackup display only full ou incr but no deletion.
Not enough time to see if crontab -e give me zmbackup -del, i launch zmschedulebackup -D to restore default et relaunch my usual configuration (i prefer 10 days for deletion because of space ).

Now I still can see my crontab -e like that (i don't modify anything, zmchedulebackup did)
Code:
# BACKUP BEGIN
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  10d
# BACKUP END
but my zmchedulebackup still not display my deletion

Code:
zimbra@brutus:~$ zmschedulebackup 
Current Schedule:

	f 0 1 * * 6 -a all
	i 0 1 * * 0-5 
zimbra@brutus:~$
my tests have been made on ubuntu 8.04 32bits and 64 bits.

Pay attention when update, you have to modify your backup

(and receive errors when launch the /opt/zimbra/libexec/scripts/migrate20100913-Mysql51.pl)
Reply With Quote
  #9 (permalink)  
Old 04-01-2011, 11:19 AM
Moderator
 
Posts: 1,432
Default

You are both on Ubuntu, so that may be a factor. We haven't heard back from the original poster but you could try to reproduce the error. You should also describe it precisely. I think there are three separate things that could be reported:

1. zmschedulebackup doesn't display the schedule correctly.
2. zmschedulebackup doesn't set the schedule correctly.
3. Even if schedule appears correct via crontab -l | grep zmbackup, the deletions aren't executed.

So be careful to specify exactly which one you can reproduce.

Then once you have the steps and symptoms, open a bug in bugzilla. And/or create a support case.
__________________
Elliot Wilen
Berkeley, CA

Don't forget to enter your Zimbra version in your forum profile.
Reply With Quote
  #10 (permalink)  
Old 04-04-2011, 04:50 AM
Member
 
Posts: 14
Default

Yesterday i did an upgrade from 7.00 to 7.01 and afterwards my 'delete schedule' was gone again... So, i readded it again. (zmschedulebackup -R i "0 1 * * 1-6" f "0 1 * * 0" d 14d "0 12 * * *") Still zmschedulebackup -q is saying: Current Schedule:

i 0 1 * * 1-6
f 0 1 * * 0 -a all

crontab -e is saying:
# BACKUP BEGIN
0 1 * * 1-6 /opt/zimbra/bin/zmbackup -i
0 1 * * 0 /opt/zimbra/bin/zmbackup -f -a all
0 12 * * * /opt/zimbra/bin/zmbackup -del 14d
# BACKUP END

But deletions are in fact working here with things setup as mentioned above!
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.