Skip to content

Timezone for SCHEDULE #77

Open
Open
@jkwek

Description

@jkwek

I've been playing with this excellent tool and it appears that the SCHEDULE environment variable always uses UTC time instead of my current timezone. I've tried various incarnations of setting the time through the volume /etc/localtime:/etc/localtime:ro and environment variable TZ=America/Los_Angeles (including both at the same time) but have not had success unless I set it to 8 hours ahead (since I'm in UTC -8). Am I missing something or does it only work in UTC time? Here is my docker compose (with both settings for time enabled):

services:
backup:
image: ghcr.io/realorangeone/db-auto-backup:latest
restart: unless-stopped
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./backups:/var/backups
- /etc/localtime:/etc/localtime:ro
environment:
- SCHEDULE=48 14 * * *
- TZ=America/Los_Angeles

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions