Teamwork Server has a built-in mechanism to trigger tasks at various periods and with various parameters.

This mechanism can be used for triggering synchronization between servers.

The tasks are specified by *.properties files located in the schedule subdirectory in the Teamwork Server install directory. Each *.properties file describes one task to be run at the defined period(s). There is an example file (synchronization.properties.example) which can be examined and copied/renamed to produce the synchronization task(s). For example, you can create two files (syncDE_GB.properties and syncDE_US.properties) to describe two synchronizations, one for synchronization from a remote server on the GB site and another for synchronization from the remote server on the US site.

Teamwork Server constantly monitors the schedule subdirectory for any changes in the *.properties files. Any changes take effect immediately. All other files with different endings, such as the synchronization.properties.example outlined above, are ignored.

When scheduled tasks are run, they are run on behalf of the system user of the Teamwork Server. This is the reason it is not necessary to specify the user on the target server when running synchronization using the scheduler; however, you must specify the user on the target server when running synchronization from the command line utility.

Properties files are specified in Java property file format.

Properties files carry the following task parameters:

Once triggered by the scheduler, synchronization runs to completion (or to unrecoverable error). The progress of synchronization can be monitored in the server log file. There is no facility to stop these jobs by user command (except for full server stop). If the synchronization job takes longer than the schedule period, and the next scheduled event happens before the previous job has finished, the event is suppressed. The second synchronization is NOT started in parallel; the running synchronization is allowed to continue and finish normally.