Backup files

I am running Metabase on lxc container:


I am connected to my database and have created some dashboard. But now I am worried that if something happens to my server I will lost all those dashboards
How can I create some backup for them? Are they store in some files? How I can access them?

Hi @Sieg
Post "Diagnostic Info" from Admin > Troubleshooting.
You would backup the Metabase application database, which stores all the information:
https://www.metabase.com/docs/latest/operations-guide/backing-up-metabase-application-data.html

If I understand correctly all the info about users and dashboard are stored in the file `metabase.db.h2.db. I need to find it and copy it elsewhere.
But where is this file? I tried to look for it inside container, but I can not find it

{
"browser-info": {
"language": "pl",
"platform": "Linux x86_64",
"userAgent": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:90.0) Gecko/20100101 Firefox/90.0",
"vendor": ""
},
"system-info": {
"file.encoding": "UTF-8",
"java.runtime.name": "OpenJDK Runtime Environment",
"java.runtime.version": "11.0.10+9-Ubuntu-0ubuntu1.18.04",
"java.vendor": "Ubuntu",
"java.vendor.url": "https://ubuntu.com/",
"java.version": "11.0.10",
"java.vm.name": "OpenJDK 64-Bit Server VM",
"java.vm.version": "11.0.10+9-Ubuntu-0ubuntu1.18.04",
"os.name": "Linux",
"os.version": "4.19-ovh-xxxx-std-ipv6-64",
"user.language": "en",
"user.timezone": "Etc/UTC"
},
"metabase-info": {
"databases": [
"h2",
"postgres"
],
"hosting-env": "unknown",
"application-database": "postgres",
"application-database-details": {
"database": {
"name": "PostgreSQL",
"version": "10.16 (Ubuntu 10.16-0ubuntu0.18.04.1)"
},
"jdbc-driver": {
"name": "PostgreSQL JDBC Driver",
"version": "42.2.18"
}
},
"run-mode": "prod",
"version": {
"date": "2021-04-08",
"tag": "v0.38.4",
"branch": "release-x.38.x",
"hash": "057b6bb"
},
"settings": {
"report-timezone": null
}
}
}

@Sieg No, you're using Postgres for the application database ("application-database": "postgres",)
So you would backup the Postgres database. Search the internet for how to backup Postgres.
The latest release of Metabase is 0.40.2: https://github.com/metabase/metabase/releases/latest