metabase-compose icon indicating copy to clipboard operation
metabase-compose copied to clipboard

How can I upgrade metabase avoiding any data loss?

Open tonytmt opened this issue 3 years ago • 2 comments

Hello and thank you very much for your tutorial.

All is running pretty well...

One question that I need help with is upgrading the metabase image without any data loss.

They have just updated to version v0.42 (https://www.metabase.com/docs/v0.42/)

https://www.metabase.com/docs/latest/operations-guide/upgrading-metabase.html

Is possible to just compose down and compose up again as your tutorial says or I need to modify something else?

Thank you mbcap

tonytmt avatar Feb 09 '22 14:02 tonytmt

I've tested just running docker-compose down and after that pulled the latest version from https://hub.docker.com/r/metabase/metabase and at the end, I've changed the version inside the docker-compose.yml file

I've tested different versions using the tags to get the image...

If I downgrade the image I get some errors related to tables which are not existents in the database depending where I'm navigating but if I do an upgrade seems the migrations take care about the new tables needed to be created.

Can it be done this way or am I just being lucky and there really hasn't been any change in the metabase db tables since version 0.41?

tonytmt avatar Mar 01 '22 15:03 tonytmt

Hi @tonytmt Edit the docker-compose.yml Add to the line Metabase: image: metabase/metabase:latest Save the modification In console : sudo docker-compose pull

sudo docker-compose down

sudo docker-compose up -d

Have a nice day ;)

Kero34 avatar Jan 30 '23 14:01 Kero34