By default, Confluence runs its daily backup at 2.00 AM. You can configure Confluence to perform the backup at a time that is best suited to you or your organisational needs.
 | Time is derived from the Confluence server
The time zone is taken from the server on which Confluence is running. To check the time according to the server, do the following:
Go to the Confluence 'Administration Console'. To do this:
- Open the 'Browse' menu and select 'Confluence Admin'. The 'Administration Console' view will open.
- Click 'System Information' in the left-hand panel and look at the 'System Time'.
|
Confluence uses Quartz for scheduling periodic jobs. To change the time of your daily backup, you will need to edit the Quartz configuration.
To change the time of your daily backup
- Open the Quartz configuration file schedulingSubsystemContext.xml located under confluence/WEB-INF/lib/confluence-x.x.x.jar. Where x.x.x is your Confluence version number.
- Find the following 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 for the job to run at the zeroth second of the zeroth minute of the 2nd hour, every day of every month, every day of the week.
- Re-jar the file, either with a zip utility (change the title of .zip back to .jar) or a java command.
- You can set a new time by editing this string. Note that the date and time format in this configuration file is in this order:
Second minute hour day
- Restart Confluence.
For example, to set the new time to twenty past ten PM, change the string to '0 20 22 * * ?'.
If you wanted to back up only once a week, for example, at midnight on Sundays, you would change the string to '0 0 0 ? * SUN'.
For complete details on the formatting of the cron string, please see http://www.opensymphony.com/quartz/api/org/quartz/CronTrigger.html.
RELATED TOPICS


Comments (3)
May 08, 2008
Anonymous says:
Open the Quartz configuration file schedulingSubsystemContext.xml located und...Change that to match appropriate version as needed...
Jul 09
Mark Burrows says:
I have Confluence 2.8.0 installed and running. Instead of re-jaring the file (wi...I have Confluence 2.8.0 installed and running. Instead of re-jaring the file (with the updated schedulingSubsystemContext.xml) can I just copy the file to a confluence install directory (possibly confluence\WEB-INF\classes from previous versions) and be ensured that confluence will use this new file?
Jul 14
Azwandi Mohd Aris says:
Hi Mark, You will need to manually create a directory path in \WEB-INF\classes ...Hi Mark,
You will need to manually create a directory path in \WEB-INF\classes with respect to its original path in JAR. For instance, the following file:
will prevail the original file in the JAR:
Hope this helps.
Cheers,
Azwandi
Add Comment