# Restore fails: could not create unique index

**URL:** <https://meta.discourse.org/t/restore-fails-could-not-create-unique-index/195867>\
**Category:** Self-hosting\
**Created:** [July 3, 2021, 4:23pm UTC](https://meta.discourse.org/t/restore-fails-could-not-create-unique-index/195867 "2021-07-03T16:23:18Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![samnazarko](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/samnazarko/32/109010_2.png) [@samnazarko](https://meta.discourse.org/u/samnazarko)\
**Post date:** [July 3, 2021, 4:23pm UTC](https://meta.discourse.org/t/restore-fails-could-not-create-unique-index/195867/1 "2021-07-03T16:23:19Z")

</div>

Hi,

I’m trying to restore a backup on to a new Discourse instance as I am performing a server migration. Unfortunately I get this error:

I’ve had a read of this:

[Restore fails - could not create unique index - #2 by simon](https://meta.discourse.org/t/restore-fails-could-not-create-unique-index/151380/2) and deleted the indexes.

Now when I do:

```plaintext
[2] pry(main)> IncomingReferer.where(path: "/m/search")
=> []

```

I get no result.

Is this OK now to take a backup and restore on the other server?

Thanks

Sam

---

_[View the full topic](https://meta.discourse.org/t/restore-fails-could-not-create-unique-index/195867)._
