> ## Documentation Index
> Fetch the complete documentation index at: https://docs.peerdb.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Pausing a CDC Mirror

PeerDB allows you to pause and resume a Change-Data Capture mirror.

1. As of today, mirrors can only be paused during CDC and not during initial load or query replication.
2. The PostgreSQL source replication slot will still exist and it **will continue to grow** as long the mirror is paused.
3. Pausing a mirror enables you to then add tables to the CDC mirror, along with editing the Sync Interval and Pull Batch Size.

### Why would I pause a mirror ?

1. You could want to run some initial set of validations and analysis on synced data.
2. You could want to [edit the mirror](/features/edit-mirror).

## Pause Mirror Guide

The prerequisites for this guide are as follows:

1. You have [a PeerDB setup running](/quickstart/quickstart#deploying-peerdb).
2. You've [kicked off a CDC mirror](/quickstart/quickstart#real-time-cdc)

First, select the mirror you created from the Mirrors page:

<img src="https://mintcdn.com/peerdb/L54DxDXK99_p-wL9/images/pause-mirror/selectmirror.png?fit=max&auto=format&n=L54DxDXK99_p-wL9&q=85&s=9dc3fe4f90c980f39ab94e3aa9bfc9e0" alt="selectmirror" width="1600" height="309" data-path="images/pause-mirror/selectmirror.png" />

Once the mirror is in `Running` state, we can click on the **Pause** button under the **Actions** menu:

<img src="https://mintcdn.com/peerdb/L54DxDXK99_p-wL9/images/pause-mirror/pause.png?fit=max&auto=format&n=L54DxDXK99_p-wL9&q=85&s=0dbe1b4662a00ffd9c507b53073cc0b8" alt="pausemirror" width="820" height="370" data-path="images/pause-mirror/pause.png" />

Once clicked, you can refresh the page and see that the **Status** is now **Paused**. To resume, we can click on the **Resume** button under the **Actions** menu:

<img src="https://mintcdn.com/peerdb/L54DxDXK99_p-wL9/images/pause-mirror/resume.png?fit=max&auto=format&n=L54DxDXK99_p-wL9&q=85&s=75fe526bc83bdf9ef6e12567e850eefb" alt="resumemirror" width="820" height="370" data-path="images/pause-mirror/resume.png" />

Now the **Status** should be back to **Running**.
