content/operate/rs/references/rest-api/objects/bdb/replica_sync.md
The BDB replica_sync field relates to the [Replica Of]({{< relref "/operate/rs/databases/import-export/replica-of/create.md" >}}) feature, which enables the creation of a Redis database (single- or multi-shard) that synchronizes data from another Redis database (single- or multi-shard).
You can use the replica_sync field to enable, disable, or pause the [Replica Of]({{< relref "/operate/rs/databases/import-export/replica-of/create.md" >}}) sync process. The BDB crdt_sync field has a similar purpose for the Redis CRDB.
Possible BDB sync values:
| Status | Description | Possible next status |
|---|---|---|
| 'disabled' | (default value) Disables the sync process and represents that no sync is currently configured or running. | 'enabled' |
| 'enabled' | Enables the sync process and represents that the process is currently active. | 'stopped' |
| 'paused' | ||
| 'paused' | Pauses the sync process. The process is configured but is not currently executing any sync commands. | 'enabled' |
| 'stopped' | ||
| 'stopped' | An unrecoverable error occurred during the sync process, which caused the system to stop the sync. | 'enabled' |
{{< image filename="/images/rs/rest-api-bdb-sync.png#no-click" alt="BDB sync" >}}
When the sync is in the 'stopped' or 'paused' state, then the last_error field in the relevant source entry in the sync_sources "status" field contains the detailed error message.