Migrate Metabase from one server to another

Hi there,

I need to migrate metabase vertion 0.47.3 from one to another server. We are using production ready installation with Postgres Sql, metabase itself is deployed as a Docker Container.

I backued up metabase application database, and sucesssfuly restored it to another instance, I can see all the data in tables by queryng tables.

Now, I pulled the docker image v.47.3 and build docker run command like this:

docker run -d -p 5000:3000
-e "MB_DATA_TYPE=postgres"
-e "MB_DB_DBNAME=metabasedb_new"
-e "MB_DB_PORT=5432"
-e "MB_DB_USER=metabase"
-e "MB_DB_PASS=metabase123"
-e "MB_DB_HOST=192.168.15.23" --name metabase metabase/metabase:v0.47.3

Typing the address in the url I get the setup screen, as if I would by first time setup. Why is this happening.

Some more info: I installed Postgres and metabase.jar on my laptop. Run restore of the Metabase applicationdata, and let metabase.jar connect to it. I ve got everyting up and running, my dashboards, questions, users stc. were all there.

On the docker version it does not work!!

Solved, after whole day of trying. Here are the steps that worked for me.

  1. On the new server:, create new database in Postgres

  2. Install Metabase in Docker, let it point to newly created postgres database

3.Open Metabase in browser, setup wizard starts, finsh setting the new Metabase instance

  1. Stop Metabase containser

  2. From pgAdmin drop the postgres database

6.Create new postgres database with the same name as in step one

  1. Restore application database from psql to database created in step six

8.Start Metabase container

9.Open browser and login to Metabase

For some reason, it does not work in reverse order i.e, restore application database, and then create metabase container and reference to the restored database. In this case it starts the Metabase setup wizard and sets the Metabase as new installation, without existing questions, dashboards etc.