Where Does Dendrite Store Config and Data?
Dendrite Matrix server config file and database paths for package installs on Linux homeserver deployments.
Last updated
Dendrite keeps server config in a single YAML file. Package installs use /etc/dendrite/dendrite.yaml with server name, ports, and database mapping. That file decides where everything else lives.
Databases default to local files near the config for small servers. Larger installs point at Postgres. Media blobs sit in a media folder referenced by the database. Back up the config with databases and media together. Server name must match on restore. Federation keys live with the config file. Monolith deployments suit single server rooms.
Where Dendrite stores this, by platform
/etc/dendrite/dendrite.yaml
Server name, listeners, and database connection mapping. Restrict read access since it holds secrets. Keep with database backups for restores.
/var/lib/dendrite
SQLite files and media blobs for small installs. Postgres installs keep equivalents in the external database. Stop the service before copying.
Frequently asked questions
what do i back up for a Dendrite move
Copy dendrite.yaml with the database files or Postgres dump. The config holds server name and database mapping. Media blobs referenced by the database sit in the media folder.
where are Dendrite databases stored
Open dendrite.yaml and read the database section. SQLite installs keep .db files near the config. Postgres installs point at an external server. The config is the reliable pointer.
Notice an outdated path? Let us know.