InvenTree icon indicating copy to clipboard operation
InvenTree copied to clipboard

Default backup location changed to media directory

Open mcsys-dev opened this issue 1 year ago • 3 comments

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: Image

Here is some output of the invoke backup command: Image

Steps to Reproduce

  1. Have a working inventree-instance
  2. Create a manual backup via docker compose run inventree-server invoke backup
  3. See there are no new backups in the data/inventree directory, then find the backup in data/media
  4. Create a second backup
  5. 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


mcsys-dev avatar Nov 03 '25 11:11 mcsys-dev

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.

SchrodingersGat avatar Nov 03 '25 23:11 SchrodingersGat

Thank you for the quick fix. I just tested it with the release Version 1.1.2, and it completely fixes the issue. 😊

mcsys-dev avatar Nov 04 '25 08:11 mcsys-dev

Great news, thanks for reporting back!

SchrodingersGat avatar Nov 04 '25 09:11 SchrodingersGat