Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: zmschedulebackup not working properly

  1. #1
    Join Date
    Feb 2008
    Posts
    23
    Rep Power
    7

    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?

  2. #2
    Join Date
    Jun 2008
    Location
    Berkeley, CA
    Posts
    1,474
    Rep Power
    9

    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.

  3. #3
    Join Date
    Feb 2008
    Posts
    23
    Rep Power
    7

    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

  4. #4
    Join Date
    Feb 2008
    Posts
    23
    Rep Power
    7

    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.

  5. #5
    Join Date
    Jun 2008
    Location
    Berkeley, CA
    Posts
    1,474
    Rep Power
    9

    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

  6. #6
    Join Date
    Feb 2008
    Posts
    23
    Rep Power
    7

    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?!

  7. #7
    Join Date
    Jun 2008
    Location
    Berkeley, CA
    Posts
    1,474
    Rep Power
    9

    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?

  8. #8
    Join Date
    Mar 2011
    Location
    Paris la Défense
    Posts
    1
    Rep Power
    4

    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)

  9. #9
    Join Date
    Jun 2008
    Location
    Berkeley, CA
    Posts
    1,474
    Rep Power
    9

    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.

  10. #10
    Join Date
    Feb 2008
    Posts
    23
    Rep Power
    7

    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!

Similar Threads

  1. iPad zimbra not working properly
    By Christopher1 in forum Mobility
    Replies: 4
    Last Post: 10-20-2010, 08:16 AM
  2. New Internet Explorer Bug?? Zimbra not properly working
    By ingmarfrey in forum Administrators
    Replies: 4
    Last Post: 07-05-2007, 02:52 PM
  3. Creating new folder not working properly?
    By Kanan in forum Administrators
    Replies: 5
    Last Post: 01-31-2006, 07:46 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
  •