immich-app / immich

High performance self-hosted photo and video management solution.
https://immich.app
GNU Affero General Public License v3.0
52.38k stars 2.78k forks source link

crontab time for automatic backup is incorrect #14135

Closed wistoch closed 1 week ago

wistoch commented 1 week ago

The bug

the default time for backup db is 02 am. But actually it happened on 10 am.

maybe the time zone issue.

When setting 02 am to backup, it should be 02 am local time.

The OS that Immich Server is running on

Ubuntu 24.04

Version of Immich Server

v1.120.2

Version of Immich Mobile App

v1.120.2

Platform with the issue

Your docker-compose.yml content

immich-server:
    container_name: immich_server
    image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
    volumes:
      - ${UPLOAD_LOCATION}:/usr/src/app/upload
      - /etc/localtime:/etc/localtime:ro
    env_file:
      - .env
    ports:
      - 2283:2283
    depends_on:
      - redis
      - database
    restart: always

Your .env content

DB_HOSTNAME=immich_postgres
DB_USERNAME=postgres
DB_DATABASE_NAME=immich

REDIS_HOSTNAME=immich_redis

Reproduction steps

  1. upgrade immich to 1.120.2 to enable the automatic backup feature
  2. after one day, check the backup
  3. the backup created at 10am.

Relevant log output

No response

Additional information

No response