-
hello all my pc once crashed and i had to reinstall windows my deployment was docker thanks in advance |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
You may be able to follow the data migration guide However if your old installation is not up and running this will be tricky. If you have the "data" directory I would suggest the following:
Please post the output of that here. And make sure you keep an un-corrupted copy of your original data dir |
Beta Was this translation helpful? Give feedback.
-
thank you for the fast response i did try it in different way first Setup a new docker installation then set env variables to the same as they were in the old setup INVENTREE_DB_ENGINE=postgresql then i copied the PGDB file and MEDIA file into the new installation and everything worked perfectly all data are back thanks |
Beta Was this translation helpful? Give feedback.
thank you for the fast response
i did try it in different way
first Setup a new docker installation
then containers are stopped - docker compose down
then set env variables to the same as they were in the old setup
INVENTREE_DB_ENGINE=postgresql
INVENTREE_DB_NAME=inventree_old_db
INVENTREE_DB_HOST=inventree-db
INVENTREE_DB_PORT=5432
INVENTREE_DB_USER=database_old_user
INVENTREE_DB_PASSWORD=database_old_user_password
then i copied the PGDB file and MEDIA file into the new installation
then Docker compose up -d
and everything worked perfectly all data are back
thanks