Change the schedule timing

KB Home   |   Change the schedule timing

You can change the time that PaperCut will perform it’s nightly maintenance by using the Config Editor. By default these run at 12:55am (i.e. the config setting is 0 55 0 * * ?).

Prior to version 11.2 the daily maintenance tasks were run at 1:15am. This was changed to avoid issues around daylight savings change overs, which could result in the job not being run.

Format

The format of the value is a string comprised of 6 fields separated by white space. The format is similar to the “cron” format which is a job scheduler used in linux/unix. Fields can contain any of the allowed values, along with various combinations of the allowed special characters for that field. The fields are as follows:

Field Name	Mandatory	Allowed Values
-		YES		0
Minutes         YES	      	0–59
Hours		YES		0–23
Day of month	YES		1–31 ? or *
Month		YES		1–12 or JAN-DEC or ? or *
Day of week	YES		1–7 or SUN-SAT or ?


The question mark (?) can be considered to be the same as saying “any” For example:- If I want my maintenance to run on a particular day of the month (say, the 28th), but don’t care what day of the week that happens to be, I would put “28” in the day-of-month field, and “?” in the day-of-week field.

The asterix (*) can be considered to be the same as saying “every” For example:- If I want my maintenance to run on a particular day of the month (say, the 28th), but want it to run every month, I would put “28” in the day-of-month field, and “*” in the Month field.

From the example above we have:- 0 0 3 28 * ?
Which means…… Run at 3AM - on the 28th day of the month - every month - on any day of the week.

More examples:-

0 15 1 * * ? - Daily 1:15AM
0  0 4 * * ? - Daily 4:00AM
0  0 2 ? * 1 - Sunday 2:00AM


Making changes

To make this change perform the following steps:

  1. Log into the PaperCut administration interface.
  2. Navigate to Options → Config editor (advanced).
  3. Search for the key schedule.daily-maintenence.
  4. Change the Value as required.
  5. Press Update.
  6. For the change to take effect, restart the PaperCut Application Server.

keywords: MON-FRI, cron, schedule, changing schedule, 0 30 10 ? * MON-FRI, 0 20 0 ? * 1, 0 30 0 1 * ?, 0 0 * * * ?, 0 55 0 * * ?, 0 10 0 * * ?, change Scheduled reports delivery times, nightly sync, maintenance window, user sync time, 12.55am


Categories: Administration


Comments

Share your findings and experience with other PaperCut users. Feel free to add comments and suggestions about this Knowledge Base article. Please don't use this for support requests.

Article last modified on May 30, 2016, at 04:49 PM
Printable View   |   Article History   |   Edit Article