Lose all data when shutting down metabase

I’m running metabase locally - java -jar metabase.jar… And when I restart I’ve lost everything - segments, metrics, questions, dashboards… What am I doing wrong?

Are you starting it in the same folder? There should be some files created the first time you run it. they’re the Metabase configuration database. If they’re moved or deleted, it will start all over again.

Thanks for the quick response.

Yes I am starting in the same folder, but I found that it saves everything if I specify the MB_DB_FILE environment variable.