Default backup location changed to media directory
Please verify that this bug has NOT been raised before.
- [x] I checked and didn't find a similar issue
Describe the bug*
The default backup location is since Version 1.0.0 (I believe) not data/backup any more, it gets dumped into the data/media folder. In this location, the already existing backups in media will get included into the next backup, at least doubling their size each time.
This is my data/media path after doing some backups:
Here is some output of the invoke backup command:
Steps to Reproduce
- Have a working inventree-instance
- Create a manual backup via
docker compose run inventree-server invoke backup - See there are no new backups in the
data/inventreedirectory, then find the backup indata/media - Create a second backup
- Notice the doubled size of the second backup
Expected behaviour
To use the default storage location (data/backup) for backups and not data/media, and have the backup size explode.
Deployment Method
Docker
Version Information
InvenTree Version: 1.1.1.1 API Version: 421 Python Version: 3.11.13 Django Version: 4.2.25 Commit Hash: d3a58ea Commit Date: 2025-11-03
Try to reproduce on the demo site
I did not try to reproduce
Is the bug reproducible on the demo site?
Not reproducible
Relevant log output
I believe that this issue is the same as https://github.com/inventree/InvenTree/pull/10751
We have just release 1.1.2 which includes a fix for this - please update when the release is available, and report back.
Thank you for the quick fix. I just tested it with the release Version 1.1.2, and it completely fixes the issue. 😊
Great news, thanks for reporting back!