# Upgrades and backups

> Upgrading the engine and what to back up.

Applies to: the Sypnia engine (open source, self-hosted).  
Source: https://mail.docs.sypnia.com/self-hosting/upgrades/

For agents: Mail upgrades: migrations on start, graceful queue drain between versions; back up Postgres (domains, templates, suppressions, history) and storage; the suppression list is the most important to keep.

Upgrades run migrations on start; the queue is drained gracefully: the old version stops taking e-mails, finishes the ones it holds, and the new one continues. Back up the Postgres database (domains, templates, suppressions and history) and, if you keep them, the storage of bodies and inbound messages. The **suppression list is the most important thing to keep**: losing it means sending again to addresses that bounced or complained.
