I'm trying to set up a custom directory the automatic backup for the database, but it's not working, and only giving me the error shown in the title when I check the logs.
Here is what I have in my docker-compose file for the db-dumper container:
backup:
container_name: immich_db_dumper
image: prodrigestivill/postgres-backup-local:14
restart: always
env_file:
- .env
environment:
POSTGRES_HOST: database
POSTGRES_CLUSTER: 'TRUE'
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_DB: ${DB_DATABASE_NAME}
SCHEDULE: "@daily"
POSTGRES_EXTRA_OPTS: '--clean --if-exists'
BACKUP_DIR: /media/backup/db_dumps
volumes:
- ./db_dumps:/db_dumps
depends_on:
- database
volumes
What should I do to fix this?
.