Results 1 to 10 of 10

Thread: where is my cron

  1. #1
    Lewisvee is offline Active Member
    Join Date
    Aug 2009
    Posts
    32
    Rep Power
    5

    Default where is my cron

    zmschedulebackup -q
    Rebuilding backup cron

    Current Schedule:
    Zimbra@]$

    could i have any help please

  2. #2
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,495
    Rep Power
    56

    Default

    You set a default schedule: "zmschedulebackup -D" Ajcody-Backup-Restore-Issues - Zimbra :: Wiki
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  3. #3
    Lewisvee is offline Active Member
    Join Date
    Aug 2009
    Posts
    32
    Rep Power
    5

    Default

    Quote Originally Posted by phoenix View Post
    You set a default schedule: "zmschedulebackup -D" Ajcody-Backup-Restore-Issues - Zimbra :: Wiki
    thanks this worked for the backup:
    zmschedulebackup -q
    Current Schedule:

    f 0 1 * * 6 -a all
    i 0 1 * * 0-5 -a all
    d 1m 0 0 * * *
    but crontab -l returns nothing

  4. #4
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,495
    Rep Power
    56

    Default

    Quote Originally Posted by Lewisvee View Post
    but crontab -l returns nothing
    I wouldn't expect it to return anything, what about the following:

    Code:
    crontab -l -u zimbra
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  5. #5
    Lewisvee is offline Active Member
    Join Date
    Aug 2009
    Posts
    32
    Rep Power
    5

    Default

    crontab -l -u zimbra returns nothing ...

  6. #6
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,495
    Rep Power
    56

    Default

    Here's the crontab for a 6.x server (I don't have a 5.x to hand but I have a recollection there's one in the forums):

    Code:
    #                                                     
    # Log pruning                                         
    #                                                     
    30 2 * * * find /opt/zimbra/log/ -type f -name \*.log\* -mtime +8 -exec rm {} \; > /dev/null 2>&1                                                                   
    35 2 * * * find /opt/zimbra/log/ -type f -name \*.out.???????????? -mtime +8 -exec rm {} \; > /dev/null 2>&1                                                        
    #                                                                                 
    # Status logging                                                                  
    #                                                                                 
    */2 * * * * /opt/zimbra/libexec/zmstatuslog                                       
    #*/10 * * * * /opt/zimbra/libexec/zmdisklog                                       
    #                                                                                 
    # SSL Certificate Expiration Checks                                               
    #                                                                                 
    0 0 1 * * /opt/zimbra/libexec/zmcheckexpiredcerts -days 30 -email                 
    #                                                                                 
    # Backups                                                                         
    #                                                                                 
    # 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 1m                                        
    # BACKUP END                                                                      
    #                                                                                 
    # crontab.ldap                                                                    
    #                                                                                 
    #                                                                                 
    #                                                                                 
    # crontab.store                                                                   
    #                                                                                 
    # Log pruning                                                                     
    #                                                                                 
    30 2 * * * find /opt/zimbra/mailboxd/logs/ -type f -name \*log\* -mtime +8 -exec rm {} \; > /dev/null 2>&1                                                          
    30 2 * * * find /opt/zimbra/log/ -type f -name stacktrace.\* -mtime +8 -exec rm {} \; > /dev/null 2>&1                                                              
    #                                                                                 
    # Table maintenance                                                               
    #                                                                                 
    30 1 * * 7 /opt/zimbra/libexec/zmmaintaintables >> /dev/null 2>&1                 
    #                                                                                 
    # Report on any database inconsistencies                                          
    #                                                                                 
    0 23 * * 7 /opt/zimbra/libexec/zmdbintegrityreport -m                             
    #                                                                                 
    # Monitor for multiple mysqld to prevent corruption                               
    #                                                                                 
    */5 * * * * /opt/zimbra/libexec/zmcheckduplicatemysqld -e > /dev/null 2>&1        
    #                                                                                 
    # Check zimbraVersionCheckURL for new update.                                     
    # Only runs if this server matches zimbraVersionCheckServer                       
    #                                                                                 
    30 2 * * 7 /opt/zimbra/libexec/zmcheckversion >> /dev/null 2>&1                   
    
    
    #
    # crontab.logger
    #               
    # process logs  
    #               
    00,10,20,30,40,50 * * * * /opt/zimbra/libexec/zmlogprocess > /tmp/logprocess.out 2>&1                                                                               
    #                                                                                 
    # Graph generation                                                                
    #                                                                                 
    10 * * * * /opt/zimbra/libexec/zmgengraphs >> /tmp/gengraphs.out 2>&1             
    #                                                                                 
    # Daily reports                                                                   
    #                                                                                 
    30 23 * * * /opt/zimbra/libexec/zmdailyreport -m                                  
    #                                                                                 
    # crontab.mta                                                                     
    #                                                                                 
    #                                                                                 
    # Queue logging                                                                   
    #                                                                                 
    0,10,20,30,40,50 * * * * /opt/zimbra/libexec/zmqueuelog                           
    #                                                                                 
    # Spam training                                                                   
    #                                                                                 
    0 23 * * * /opt/zimbra/bin/zmtrainsa >> /opt/zimbra/log/spamtrain.log 2>&1        
    #                                                                                 
    # Spam training cleanup                                                           
    #                                                                                 
    45 23 * * * /opt/zimbra/bin/zmtrainsa --cleanup >> /opt/zimbra/log/spamtrain.log 2>&1                                                                               
    #                                                                                 
    # Dspam cleanup                                                                   
    #                                                                                 
    0 1 * * * [ -d /opt/zimbra/data/dspam/data/z/i/zimbra/zimbra.sig ] && find /opt/zimbra/data/dspam/data/z/i/zimbra/zimbra.sig/ -type f -name \*sig -mtime +7 -exec rm {} \; > /dev/null 2>&1                                                           
    8 4 * * * [ -f /opt/zimbra/data/dspam/system.log ] && /opt/zimbra/dspam/bin/dspam_logrotate -a 60 -l /opt/zimbra/data/dspam/system.log                              
    8 8 * * * [ -f /opt/zimbra/data/dspam/data/z/i/zimbra/zimbra.log ] && /opt/zimbra/dspam/bin/dspam_logrotate -a 60 -l /opt/zimbra/data/dspam/data/z/i/zimbra/zimbra.log
    #
    # Spam Bayes auto-expiry
    #
    20 23 * * * /opt/zimbra/libexec/sa-learn -p /opt/zimbra/conf/salocal.cf --dbpath /opt/zimbra/data/amavisd/.spamassassin --siteconfigpath /opt/zimbra/conf/spamassassin --force-expire --sync > /dev/null 2>&1
    #
    # Clean up amavisd/tmp
    #
    15 5,20 * * * find /opt/zimbra/data/amavisd/tmp -maxdepth 1 -type d -name 'amavis-*' -mtime +1 -exec rm -rf {} \; > /dev/null 2>&1
    #
    # Clean up the quarantine dir
    #
    0 1 * * * find /opt/zimbra/data/amavisd/quarantine -type f -mtime +7 -exec rm -f {} \; > /dev/null 2>&1
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  7. #7
    Lewisvee is offline Active Member
    Join Date
    Aug 2009
    Posts
    32
    Rep Power
    5

    Default

    Quote Originally Posted by phoenix View Post
    Here's the crontab for a 6.x server (I don't have a 5.x to hand but I have a recollection there's one in the forums):

    Code:
    #                                                     
    # Log pruning                                         
    #                                                     
    30 2 * * * find /opt/zimbra/log/ -type f -name \*.log\* -mtime +8 -exec rm {} \; > /dev/null 2>&1                                                                   
    35 2 * * * find /opt/zimbra/log/ -type f -name \*.out.???????????? -mtime +8 -exec rm {} \; > /dev/null 2>&1                                                        
    #                                                                                 
    # Status logging                                                                  
    #                                                                                 
    */2 * * * * /opt/zimbra/libexec/zmstatuslog                                       
    #*/10 * * * * /opt/zimbra/libexec/zmdisklog                                       
    #                                                                                 
    # SSL Certificate Expiration Checks                                               
    #                                                                                 
    0 0 1 * * /opt/zimbra/libexec/zmcheckexpiredcerts -days 30 -email                 
    #                                                                                 
    # Backups                                                                         
    #                                                                                 
    # 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 1m                                        
    # BACKUP END                                                                      
    #                                                                                 
    # crontab.ldap                                                                    
    #                                                                                 
    #                                                                                 
    #                                                                                 
    # crontab.store                                                                   
    #                                                                                 
    # Log pruning                                                                     
    #                                                                                 
    30 2 * * * find /opt/zimbra/mailboxd/logs/ -type f -name \*log\* -mtime +8 -exec rm {} \; > /dev/null 2>&1                                                          
    30 2 * * * find /opt/zimbra/log/ -type f -name stacktrace.\* -mtime +8 -exec rm {} \; > /dev/null 2>&1                                                              
    #                                                                                 
    # Table maintenance                                                               
    #                                                                                 
    30 1 * * 7 /opt/zimbra/libexec/zmmaintaintables >> /dev/null 2>&1                 
    #                                                                                 
    # Report on any database inconsistencies                                          
    #                                                                                 
    0 23 * * 7 /opt/zimbra/libexec/zmdbintegrityreport -m                             
    #                                                                                 
    # Monitor for multiple mysqld to prevent corruption                               
    #                                                                                 
    */5 * * * * /opt/zimbra/libexec/zmcheckduplicatemysqld -e > /dev/null 2>&1        
    #                                                                                 
    # Check zimbraVersionCheckURL for new update.                                     
    # Only runs if this server matches zimbraVersionCheckServer                       
    #                                                                                 
    30 2 * * 7 /opt/zimbra/libexec/zmcheckversion >> /dev/null 2>&1                   
    
    
    #
    # crontab.logger
    #               
    # process logs  
    #               
    00,10,20,30,40,50 * * * * /opt/zimbra/libexec/zmlogprocess > /tmp/logprocess.out 2>&1                                                                               
    #                                                                                 
    # Graph generation                                                                
    #                                                                                 
    10 * * * * /opt/zimbra/libexec/zmgengraphs >> /tmp/gengraphs.out 2>&1             
    #                                                                                 
    # Daily reports                                                                   
    #                                                                                 
    30 23 * * * /opt/zimbra/libexec/zmdailyreport -m                                  
    #                                                                                 
    # crontab.mta                                                                     
    #                                                                                 
    #                                                                                 
    # Queue logging                                                                   
    #                                                                                 
    0,10,20,30,40,50 * * * * /opt/zimbra/libexec/zmqueuelog                           
    #                                                                                 
    # Spam training                                                                   
    #                                                                                 
    0 23 * * * /opt/zimbra/bin/zmtrainsa >> /opt/zimbra/log/spamtrain.log 2>&1        
    #                                                                                 
    # Spam training cleanup                                                           
    #                                                                                 
    45 23 * * * /opt/zimbra/bin/zmtrainsa --cleanup >> /opt/zimbra/log/spamtrain.log 2>&1                                                                               
    #                                                                                 
    # Dspam cleanup                                                                   
    #                                                                                 
    0 1 * * * [ -d /opt/zimbra/data/dspam/data/z/i/zimbra/zimbra.sig ] && find /opt/zimbra/data/dspam/data/z/i/zimbra/zimbra.sig/ -type f -name \*sig -mtime +7 -exec rm {} \; > /dev/null 2>&1                                                           
    8 4 * * * [ -f /opt/zimbra/data/dspam/system.log ] && /opt/zimbra/dspam/bin/dspam_logrotate -a 60 -l /opt/zimbra/data/dspam/system.log                              
    8 8 * * * [ -f /opt/zimbra/data/dspam/data/z/i/zimbra/zimbra.log ] && /opt/zimbra/dspam/bin/dspam_logrotate -a 60 -l /opt/zimbra/data/dspam/data/z/i/zimbra/zimbra.log
    #
    # Spam Bayes auto-expiry
    #
    20 23 * * * /opt/zimbra/libexec/sa-learn -p /opt/zimbra/conf/salocal.cf --dbpath /opt/zimbra/data/amavisd/.spamassassin --siteconfigpath /opt/zimbra/conf/spamassassin --force-expire --sync > /dev/null 2>&1
    #
    # Clean up amavisd/tmp
    #
    15 5,20 * * * find /opt/zimbra/data/amavisd/tmp -maxdepth 1 -type d -name 'amavis-*' -mtime +1 -exec rm -rf {} \; > /dev/null 2>&1
    #
    # Clean up the quarantine dir
    #
    0 1 * * * find /opt/zimbra/data/amavisd/quarantine -type f -mtime +7 -exec rm -f {} \; > /dev/null 2>&1
    Please can you guide how to proceed now.. Please..

    & how can i check what happened to my cron..

  8. #8
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,495
    Rep Power
    56

    Default

    You can add crontab entries (you can copy/paste the whole lot) with:

    Code:
    crontab -e -u zimbra
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  9. #9
    Lewisvee is offline Active Member
    Join Date
    Aug 2009
    Posts
    32
    Rep Power
    5

    Default

    Quote Originally Posted by phoenix View Post
    You can add crontab entries (you can copy/paste the whole lot) with:

    Code:
    crontab -e -u zimbra
    the command crontab -e -u zimbra gave me the error "crontab: installing new crontab
    "/tmp/crontab.XXXXhGhSuh":1: bad minute
    errors in crontab file, can't install

  10. #10
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,495
    Rep Power
    56

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Dspam Cron Jobs?
    By y@w in forum Administrators
    Replies: 0
    Last Post: 10-30-2009, 01:10 PM
  2. [SOLVED] Zimbra logwatch.
    By nishith in forum Administrators
    Replies: 5
    Last Post: 06-10-2009, 04:42 PM
  3. Spam training has no cron job
    By richard-hdd in forum Administrators
    Replies: 3
    Last Post: 09-13-2006, 11:50 AM
  4. Replies: 0
    Last Post: 08-22-2006, 10:12 AM
  5. Problems with Zimbra Cron Jobs
    By soxfan in forum Administrators
    Replies: 9
    Last Post: 08-22-2006, 09:02 AM

Posting Permissions

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