This page last changed on Dec 29, 2005 by tom@atlassian.com.

By default, Confluence runs its daily backup at 2AM. You may wish to change this to another time if you have user activity at 2AM.

Confluence uses Quartz for scheduling periodic jobs. The Quartz configuration is in the file confluence/WEB-INF/classes/schedulingSubsystemContext.xml.

To change the time that the backup job runs, find the section of the file:

<bean id="backupTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">
  <property name="jobDetail">
    <ref bean="backupJob"/>
  </property>
  <property name="cronExpression">
    <value>0 0 2 * * ?</value>
  </property>
</bean>

 

The string '0 0 2 * * ?' sets up a Cron Trigger which states that the job will run at the zeroth second of the zeroth minute of the 2nd hour, every day of every month, every day of the week.

To change the time to, say, twenty past ten PM, change the string to '0 10 22 * * ?'.

If you wanted to back up only weekly, you could use '0 0 0 ? * SUN' to backup at midnight every Sunday.

For complete details on the format of the cron string, please see http://www.opensymphony.com/quartz/api/org/quartz/CronTrigger.html.

Document generated by Confluence on Oct 10, 2007 18:47