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 11-08-2009, 01:39 AM
Active Member
 
Posts: 32
Default where is my cron

zmschedulebackup -q
Rebuilding backup cron

Current Schedule:
Zimbra@]$

could i have any help please
Reply With Quote
  #2 (permalink)  
Old 11-08-2009, 01:59 AM
Zimbra Consultant & Moderator
 
Posts: 19,653
Default

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


Bill
Reply With Quote
  #3 (permalink)  
Old 11-08-2009, 02:50 AM
Active Member
 
Posts: 32
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
Reply With Quote
  #4 (permalink)  
Old 11-08-2009, 06:01 AM
Zimbra Consultant & Moderator
 
Posts: 19,653
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
Reply With Quote
  #5 (permalink)  
Old 11-08-2009, 10:18 PM
Active Member
 
Posts: 32
Default

crontab -l -u zimbra returns nothing ...
Reply With Quote
  #6 (permalink)  
Old 11-08-2009, 10:51 PM
Zimbra Consultant & Moderator
 
Posts: 19,653
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
Reply With Quote
  #7 (permalink)  
Old 11-08-2009, 11:15 PM
Active Member
 
Posts: 32
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..
Reply With Quote
  #8 (permalink)  
Old 11-08-2009, 11:47 PM
Zimbra Consultant & Moderator
 
Posts: 19,653
Default

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

Code:
crontab -e -u zimbra
__________________
Regards


Bill
Reply With Quote
  #9 (permalink)  
Old 11-22-2009, 12:00 AM
Active Member
 
Posts: 32
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
Reply With Quote
  #10 (permalink)  
Old 11-22-2009, 12:06 AM
Zimbra Consultant & Moderator
 
Posts: 19,653
Default

errors in crontab file, can't install "bad minute" - Yahoo! Search Results
__________________
Regards


Bill
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.