# Pod linking and replication

> How to link two of your pods as a primary and a replica, what the replica receives, and how often.

URL: https://doc.synap.live/docs/concepts/pod-replication · Last reviewed against the code: 2026-11-04

Linking keeps a second, live copy of a pod. You link two pods you own: the **primary**, the pod you use every day, and
the **replica**, which receives a copy of everything the primary records. A replica can serve as a standby, a copy on
another server, or a copy you host yourself next to a pod Synap hosts for you.

Linking is not the same as a backup. A replica follows the primary within seconds, so a mistake on the primary reaches
the replica too. To go back to an earlier state, use [backups](/docs/run/backups).

## Link two pods

1. Sign in on [synap.live](https://synap.live) and open your pod.
2. Open **Pod linking** and choose **Link another Pod**.
3. Pick the other pod, and choose this pod's role: **primary** (it sends data) or **replica** (it receives data).
4. Choose **Confirm link**. synap.live asks you to confirm it is you before the link is made.

Both pods must belong to your Synap account and be running. That can be a pod Synap hosts for you or a self-hosted
pod you [registered with the Control Plane](/docs/run/connect-control-plane#register-the-pod-with-the-control-plane).
A pod can be linked to one other pod at a time: a link always joins exactly two pods.

When you link, the Control Plane creates a secret that only the two pods share and gives it to each of them. From then
on the pods talk to each other directly over HTTPS; your data does not pass through the Control Plane.

Once the pods are linked, the same panel shows this pod's role and the pod it is linked to. **Unlink Pods** stops the
sync on both pods at once. Each pod keeps the data it already has.

To follow the sync itself, open the [pod admin console](/docs/concepts/glossary#pod-admin-console) of either pod and go
to **Backups**: the **Sync** card lists the other pod, the number of events synced, and the last error if there is one.

## What the replica receives

| What | When |
|---|---|
| Every change to your records (entities, relations, views, documents and the rest of the event history) | Sent as soon as it happens, with a check every minute that catches up on anything missed |
| Spaces and their members, channels and messages, automations and their runs, property definitions, and your AI service settings | Every 5 minutes |
| The content of files and documents up to 10 MB each, and their version history (larger files are not copied) | Every 10 minutes |

On the first link, the replica also catches up on the primary's existing history. Every space is replicated. API keys
for AI services are never copied: each pod keeps its own.

Sync goes one way, from the primary to the replica. A change made directly on the replica is not sent back to the
primary.

## When both pods changed the same record

When a change arrives for a record the replica already has, the version with the later time is kept: a newer change
from the primary replaces the replica's copy, and an older one is skipped. The pod records each such case. There is no
screen to merge two versions field by field.

## When a pod is unreachable

If one pod cannot reach the other, the changes wait and the next run sends them. After 10 failed runs in a row, the
pod stops trying that peer. The **Sync** card in the pod admin console then shows the last error and a **Retry**
button, which clears the error so the next run tries again.

## What linking does not do

- Link three or more pods together.
- Swap the primary and the replica from synap.live.
- Promise a delay: changes usually arrive within seconds, and the scheduled runs above catch up after an outage.

## Where to go next

- [Backups](/docs/run/backups): snapshots you can restore, the other way to keep a copy
- [Connect to the Control Plane](/docs/run/connect-control-plane): register a self-hosted pod with your Synap account
