-
Hello! I possess a copy of the inventree data directory and a backup archive from the old server, and I'm seeing that I should be running the same version of Inventree on the same setup if I want to restore successfully. The problem is that I don't actually know what I was running before, I did not take note of it as I didn't think it was critical. Is there enough info sitting in the inventree data directory to successfully recreate my old setup? Any guidance would be appreciated, reconstructing the database will take quite a while if that's what is necessary |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
If there is even a way to manually view the database (secret key has been preserved in the backup) I could use that to rebuild the database faster than taking stock of my supplies |
Beta Was this translation helpful? Give feedback.
-
If the database is still available (and not corrupted) then you should be able to make use of it. If you do not have backups to restore from, the general idea would be:
Point So: a) What installation method did you use originally |
Beta Was this translation helpful? Give feedback.
-
This experience has definitely taught me that I need to be saving some notes with my backups 😆 I followed a guide that had this set up through docker compose, pretty sure it was the one you provided in the docs. I was reading in other posts on this forum that if you restore a backup, it needs to be the same inventree version that the backup came from. I'm not finding anything in the data folder that hints at what version I was running though. I'll try grabbing a version from a year ago (around the time I spun up the server in question) and see if I can restore it to that |
Beta Was this translation helpful? Give feedback.
This experience has definitely taught me that I need to be saving some notes with my backups 😆
The data folder I backed up was a mounted docker volume, and inside it I have a
pgdb
directory, there are a number of postgresql configuration files in there an aPG_VERSION
file that says 13, I think its safe to assume it was running postgresqlI also do have backups in the backup directory. The most recent one is only a week old so I can do that if it is usable.
I followed a guide that had this set up through docker compose, pretty sure it was the one you provided in the docs.
I was reading in other posts on this forum that if you restore a backup, it needs to be the same inventree version tha…