This documentation relates to an early version of Confluence.
View this page in the current documentation or visit the current documentation home.

Changing time of Daily Backup

All Versions
Click for all versions
Confluence 2.5.4 to 2.5.8 Documentation

Index

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.

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

  1. Open the Quartz configuration file schedulingSubsystemContext.xml located under confluence/WEB-INF/classes/

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


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

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

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
Backup FAQ
Site Backup and Restore
Manually Backing Up The Site
User Submitted Backup & Restore Scripts
Configuring Daily Backups
Changing time of Daily Backup

Labels

site-administration site-administration Delete
daily-backup daily-backup Delete
administration administration Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.