Configure scheduled tasks

Before running the commands shown on this page, you should load the Bitnami stack environment by executing the installdir/use_APPNAME script (Linux and MacOS) or by clicking the shortcut in the Start Menu under “Start -> Bitnami APPNAME Stack -> Application console” (Windows). On OS X VMs, the installation directory is /opt/bitnami and OS X VM users can click the “Open Terminal” button to run commands. Learn more about the Bitnami stack environment and about OS X VMs.

NOTE: The Approach A sections referred to below do not apply to Bitnami native installers. Users of Bitnami native installers should refer only to the Approach B sections.

Configure scheduled tasks

To automatically perform certain tasks in Redmine, it is necessary to set up a scheduled task / cron job.

Follow these steps:

  • Run the following command to edit the crontab file:

      $ sudo crontab -e
  • Add the following line to the file. This will configure a job to be executed daily at 00:30. You can modify the timing if you wish, and you must replace the COMMAND placeholder with the command to be executed.

      30 0 * * * COMMAND
  • Save the file.

Configure reminder emails

To have Redmine automatically send reminder emails, create a scheduled task as described in the previous section. Use the following commands in the crontab file, depending on your installation type:

* Approach A (Bitnami installations using system packages):

        30 * * * * sudo installdir/ruby/bin/rake -f installdir/redmine/Rakefile redmine:send_reminders days=7 RAILS_ENV="production"

* Approach B (Self-contained Bitnami installations):

        30 * * * * sudo installdir/ruby/bin/rake -f installdir/apps/redmine/htdocs/Rakefile redmine:send_reminders days=7 RAILS_ENV="production"
Last modification July 15, 2021