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

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:

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

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

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

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

2 Likes

Thanks, that was indeed the issue :slight_smile:

1 Like