# Upgrades and backups

> Upgrading the engine and the tools, and what to back up.

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

For agents: Design upgrades: engine runs migrations on start; render jobs drain between versions. @sypnia/design and @sypnia/base follow semver; format version of the design/ files and of sypnia.toml — newer tools read older formats, design upgrade rewrites files to the new format in a pull request; @sypnia/base minor versions never change behaviour people rely on without a changelog entry. Back up: the repository holds the design (guide, tokens, icons, gallery, screens, pieces); the engine's database holds proposals, approvals and audit; storage holds uploaded originals.

## The engine

Upgrades run migrations on start. Render jobs in progress finish on the old version; new ones start on the new one.

## The tools

`@sypnia/design` and `@sypnia/base` follow semantic versions. Files carry a format version (`format: 1` in each file of `design/`, and `format = 1` in `sypnia.toml`): newer tools always read older formats, and `design upgrade` rewrites your files to the newest format in a pull request.

A new `@sypnia/base` minor version never changes behaviour people rely on (how the keyboard moves, what a screen reader hears) without saying so in the changelog.

## What to back up

| Where                 | What                                                             | How important                                                    |
| --------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- |
| Your repository       | the whole design: guide, tokens, icons, gallery, screens, pieces | the most important, and already in Git                           |
| The engine's Postgres | proposals, who approved what, the audit log                      | keep it                                                          |
| Storage               | uploaded originals (logos, fonts)                                | keep the originals; renders and exports are made again on demand |
