# pt-table-sync =\> Duplicate entry '2876' for key 'PRIMARY'

**URL:** https://forums.percona.com/t/pt-table-sync-duplicate-entry-2876-for-key-primary/4509
**Category:** Percona Toolkit
**Created:** [November 10, 2015, 2:23pm UTC](https://forums.percona.com/t/pt-table-sync-duplicate-entry-2876-for-key-primary/4509 "2015-11-10T14:23:27Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![scott.nemes](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/scott.nemes/32/5_2.png) [@scott.nemes](https://forums.percona.com/u/scott.nemes)
#### Post date: [November 10, 2015, 4:39pm UTC](https://forums.percona.com/t/pt-table-sync-duplicate-entry-2876-for-key-primary/4509/4 "2015-11-10T16:39:34Z")

</div>

Hi jorfermo;

So is the frontend a slave of the backend, or is the backend a slave of the frontend? With your command, you would be syncing what is on the backend to the frontend. The fact that your destination table is empty leads me to believe things are reversed from what you you are intending.

One thing you can do is use the --print option instead of --execute to see what it would actually be doing. That tends to help get your mind around what is happening.

-Scott

---

_[View the full topic](https://forums.percona.com/t/pt-table-sync-duplicate-entry-2876-for-key-primary/4509)._
