Skip to content

using an old database as source for new inventree installation #6689

Closed Answered by lobra07
lobra07 asked this question in Q&A
Discussion options

You must be logged in to vote

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

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by matmair
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question This is a question docker Docker / docker-compose setup Relates to the InvenTree setup / installation process
2 participants