# How to force close $backupCursor on a replica set?

**URL:** <https://forums.percona.com/t/how-to-force-close-backupcursor-on-a-replica-set/22202>\
**Category:** Percona Backup for MongoDB\
**Tags:** percona, mongodb\
**Created:** [May 20, 2023, 9:41am UTC](https://forums.percona.com/t/how-to-force-close-backupcursor-on-a-replica-set/22202 "2023-05-20T09:41:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![glasen77](https://avatars.discourse-cdn.com/v4/letter/g/e19adc/32.png) [@glasen77](https://forums.percona.com/u/glasen77)\
**Post date:** [May 20, 2023, 9:41am UTC](https://forums.percona.com/t/how-to-force-close-backupcursor-on-a-replica-set/22202/1 "2023-05-20T09:41:45Z")

</div>

Hi,

i’ve the problem that one replica set of our sharded cluster has an open backup cursor and because of this i cannot run PBM. Is it possible to force-close the cursor?

---

<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:** [May 29, 2023, 11:28am UTC](https://forums.percona.com/t/how-to-force-close-backupcursor-on-a-replica-set/22202/2 "2023-05-29T11:28:58Z")

</div>

Hi, I am not sure if it’s possible to kill these. Have you tried [https://www.mongodb.com/docs/manual/reference/command/killCursors/](https://www.mongodb.com/docs/manual/reference/command/killCursors/) functionality?

---

<div class="post-metadata">

**Author:** ![Andrew\_Pogrebnoi](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/andrew_pogrebnoi/32/77_2.png) [@Andrew\_Pogrebnoi](https://forums.percona.com/u/Andrew_Pogrebnoi)\
**Post date:** [May 31, 2023, 7:03am UTC](https://forums.percona.com/t/how-to-force-close-backupcursor-on-a-replica-set/22202/3 "2023-05-31T07:03:47Z")

</div>

$backupCursor automatically closes in 10min (PBM periodically polls the cursor during backup to prevent it from closing). Restarting mongod should close the cursor as well.
