Backup directory environment variable in Docker #8296
Replies: 1 comment
-
Okay, I realise now where I've gone wrong. Should have been obvious but years of Windoze conditioning meant I read variable names "EXT_VOLUME" and "BACKUP_DIR" to be interchangeable things, when obviously they are not. Looks like I'll have to set up rsync. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I haven't been able to determine why, but my backups are not being written to the specified backup directory.
My install is a docker deployment on Debian 12.
I have set the environment variables in the .env file as such:
I'm fairly sure I don't need to specify
INVENTREE_BACKUP_STORAGE=django.core.files.storage.FileSystemStorage
because it's listed in the documentation as the default parameter, but did anyway for troubleshooting.In the web UI and the docker logs, there are no errors reported with respect to the automatic daily backups.
However, the backups are not being placed in the
INVENTREE_BACKUP_DIR
.If I execute a shell in the inventree-worker container using
docker exec -it inventree-worker sh
, I can run theinvoke backup
command and it performs the operation with some minor warnings but no issues.It appears to be writing the backups to a directory that is local only to that docker container (please correct me if I'm misunderstanding - I have a bit of experience with self-hosting software but am still a novice with docker).
df -h
inside the inventree-worker container returns the following:What have I missed? What do I need to change so that the backups are written to the correct directory?
Beta Was this translation helpful? Give feedback.
All reactions