# Percona Backup Manager restores mongodb data and indexes but without the index options

**URL:** <https://forums.percona.com/t/percona-backup-manager-restores-mongodb-data-and-indexes-but-without-the-index-options/17080>\
**Category:** Percona Backup for MongoDB\
**Tags:** percona, mongodb\
**Created:** [August 18, 2022, 2:49pm UTC](https://forums.percona.com/t/percona-backup-manager-restores-mongodb-data-and-indexes-but-without-the-index-options/17080 "2022-08-18T14:49:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stefan\_Bruins](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/stefan_bruins/32/7253_2.png) [@Stefan\_Bruins](https://forums.percona.com/u/Stefan_Bruins)\
**Post date:** [August 18, 2022, 2:49pm UTC](https://forums.percona.com/t/percona-backup-manager-restores-mongodb-data-and-indexes-but-without-the-index-options/17080/1 "2022-08-18T14:49:15Z")

</div>

I just created a backup with pbm version 1.8.1 of my mongodb 4.4 data and immediately restored it. The data was successfully restored and the indexes were recreated. However the indexes have been recreated without the options. Is this the expected behaviour?

For instance the index originally was:

```auto
{
    "v" : 2,
    "key" : {
        "userId" : 1
    },
    "name" : "userId_1",
    "ns" : "api.userActivityLog",
    "partialFilterExpression" : {}
}

```

After a backup and then a restore the restored index is:

```auto
{
    "v" : 2,
    "key" : {
        "userId" : 1
    },
    "name" : "userId_1"
}

```

---

<div class="post-metadata">

**Author:** ![Ivan\_Groenewold](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/ivan_groenewold/32/6299_2.png) [@Ivan\_Groenewold](https://forums.percona.com/u/Ivan_Groenewold)\
**Post date:** [August 18, 2022, 4:07pm UTC](https://forums.percona.com/t/percona-backup-manager-restores-mongodb-data-and-indexes-but-without-the-index-options/17080/2 "2022-08-18T16:07:50Z")

</div>

Hello, the `partialFilterExpression` is empty so it won’t be considered when backing up. Also the `ns` field is no longer returned by `db.collection.getIndexes()` method starting in MongoDB 4.4

---

<div class="post-metadata">

**Author:** ![Stefan\_Bruins](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/stefan_bruins/32/7253_2.png) [@Stefan\_Bruins](https://forums.percona.com/u/Stefan_Bruins)\
**Post date:** [August 19, 2022, 7:45am UTC](https://forums.percona.com/t/percona-backup-manager-restores-mongodb-data-and-indexes-but-without-the-index-options/17080/3 "2022-08-19T07:45:24Z")

</div>

Thanks, that was indeed the issue 🙂
