# Upgrades and backups

> Upgrading the engine and what to back up.

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

For agents: Domains upgrades: migrations on start, in-progress operations resumed from stored registrar operation id; back up Postgres (history, desired zone state); domains and zones live in your AWS account, so domains import rebuilds the database from Route 53.

Upgrades run migrations on start; operations in progress are picked up again by the new version from their stored registrar operation id. Back up the Postgres database: it holds the history and the desired state of your zones. The domains themselves and the zones live in your AWS account, so losing the engine's database never loses a domain: `domains import` rebuilds it from Route 53.
