Skip to content

Added Support for Configurable Time Zones

Choose a tag to compare

@dharmeshmp dharmeshmp released this 05 Dec 11:11
· 4 commits to main since this release

Release Highlights:

This release introduces support for specifying time zones in the container, allowing cron jobs to execute in the desired timezone instead of defaulting to UTC. The feature enhances scheduling flexibility and better accommodates users in different geographical regions.


New Features

  • Time Zone Configuration:
    Added the TIME_ZONE environment variable to set the desired timezone for cron jobs. For example:
    -e TIME_ZONE="Asia/Kolkata"
    By default, the timezone is set to UTC.

Bug Fixes

  • Improved cron job setup to ensure environment variables are correctly loaded and utilized.
  • Enhanced logging mechanism for better real-time log visibility.

Usage Example

Run a container with a specific timezone:

docker run -d \
  -e RCLONE_SOURCE=source:my-source-bucket \
  -e RCLONE_DESTINATION=backup:my-destination-bucket \
  -e BACKUP_CRON="0 2 * * *" \
  -e TIME_ZONE="America/New_York" \
  rclone-copy-cron

Thank you for using rclone-copy-cron! We look forward to your feedback and contributions.