> For the complete documentation index, see [llms.txt](https://doc.duaer.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.duaer.com/zh/hosting/configuration/supported-databases-settings.md).

# Duaer 支持的数据库

自托管 Duaer 可用 SQLite 或 Postgres。
## SQLite 或 Postgres

SQLite 把数据放在一个文件里，适合单进程。备份即拷贝该文件；拷贝时不要有进程在写。

队列模式的主进程与 worker 要读同一份执行与数字组织，请用 Postgres。不要让多个进程写同一 SQLite 文件。连接串放在环境变量里，并与 [加密密钥](/zh/hosting/configuration/encryption-keys.md) 一起备份。
## Questions

### Duaer 可以用哪些数据库？

SQLite（单进程）与 Postgres（队列模式或多进程共享数据）。不要多进程写同一 SQLite 文件。

