Configure scheduled tasks

NOTE: We are in the process of modifying the file structure and configuration for many Bitnami stacks. On account of these changes, the file paths stated in this guide may change depending on whether your Bitnami stack uses native Linux system packages (Approach A), or if it is a self-contained installation (Approach B). To identify your Bitnami installation type and what approach to follow, run the command below:

 $ test ! -f "/opt/bitnami/common/bin/openssl" && echo "Approach A: Using system packages." || echo "Approach B: Self-contained installation."

The output of the command indicates which approach (A or B) is used by the installation, and will allow you to identify the paths, configuration and commands to use in this guide. Refer to the FAQ for more information on these changes.

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 /opt/bitnami/ruby/bin/rake -f /opt/bitnami/redmine/Rakefile redmine:send_reminders days=7 RAILS_ENV="production"

* Approach B (Self-contained Bitnami installations):

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