> 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/installation/updating.md).

# 更新 Duaer

更新自托管 Duaer 的最佳实践。
## 更新步骤

1. 备份 DUAER_ENCRYPTION_KEY 与数据库。升级不会替你轮换密钥。
2. 阅读你要跨过的 [2.0](/zh/2-0-breaking-changes.md) 或 [v3](/zh/changelog/v30-breaking-changes.md)。
3. 停止主进程与 worker，换到新版本，再启动。

队列模式中，worker 与主进程必须同一版本。密钥说明见 [加密密钥](/zh/hosting/configuration/encryption-keys.md)。
## Questions

### 升级前要留住什么？

在 Duaer 里，DUAER_ENCRYPTION_KEY 与数据库。先读破坏性变更，再停进程、换版本、启动。队列模式保持主进程与 worker 同版本。

