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

# Update Duaer

Best practices for updating your self-hosted Duaer.
## Update steps

1. Back up DUAER_ENCRYPTION_KEY and the database. The upgrade does not rotate the key for you.
2. Read [2.0](/2-0-breaking-changes.md) or [v3](/changelog/v30-breaking-changes.md) for the versions you are crossing.
3. Stop the main process and workers, switch to the new version, and start again.

In queue mode, workers and the main process need the same version. Refer to [encryption keys](/hosting/configuration/encryption-keys.md).
## Questions

### What do you keep before updating?

In Duaer, dUAER_ENCRYPTION_KEY and the database. Read breaking changes, then stop, switch version, and start. In queue mode keep main and workers on the same version.

