# Import authorities key's from another pritunl zero management

**URL:** <https://forum.pritunl.com/t/import-authorities-keys-from-another-pritunl-zero-management/2628>\
**Category:** Pritunl Zero\
**Tags:** pritunl-zero\
**Created:** [November 26, 2024, 3:39pm UTC](https://forum.pritunl.com/t/import-authorities-keys-from-another-pritunl-zero-management/2628 "2024-11-26T15:39:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vinzBravo](https://forum.pritunl.com/letter_avatar_proxy/v4/letter/v/58f4c7/32.png) [@vinzBravo](https://forum.pritunl.com/u/vinzBravo)\
**Post date:** [November 26, 2024, 3:39pm UTC](https://forum.pritunl.com/t/import-authorities-keys-from-another-pritunl-zero-management/2628/1 "2024-11-26T15:39:48Z")

</div>

Hello Team

Is a way to import from previous pritunl the authorities of a previous pritunl management.  
Because we want to install a fresh pritunl zero and we d’ont want to redeploy the pritunl authorities on all server’s

I think about dump the collection from mongo and reimport on the new one.

What do you think ?

Thanks for your feedback

Vinz

---

<div class="post-metadata">

**Author:** ![zach](https://forum.pritunl.com/user_avatar/forum.pritunl.com/zach/32/1105_2.png) [@zach](https://forum.pritunl.com/u/zach)\
**Post date:** [November 27, 2024, 9:13am UTC](https://forum.pritunl.com/t/import-authorities-keys-from-another-pritunl-zero-management/2628/2 "2024-11-27T09:13:37Z")

</div>

The command `mongodump --uri="mongodb://<username>:<password>@<host>:<port>/pritunl-zero" --collection=authorities --out=backup` will export the authorities collection. Then the command `mongorestore --uri="mongodb://<username>:<password>@<host>:<port>/pritunl-zero" --collection=authorities --nsInclude="pritunl-zero.authorities" backup/pritunl-zero/authorities.bson` can be used to import the collection.

---

<div class="post-metadata">

**Author:** ![vinzBravo](https://forum.pritunl.com/letter_avatar_proxy/v4/letter/v/58f4c7/32.png) [@vinzBravo](https://forum.pritunl.com/u/vinzBravo)\
**Post date:** [November 27, 2024, 4:59pm UTC](https://forum.pritunl.com/t/import-authorities-keys-from-another-pritunl-zero-management/2628/3 "2024-11-27T16:59:56Z")

</div>

Thanks Zach for the feedback  
I will try this migration plan

Best regards

---

<div class="post-metadata">

**Author:** ![vinzBravo](https://forum.pritunl.com/letter_avatar_proxy/v4/letter/v/58f4c7/32.png) [@vinzBravo](https://forum.pritunl.com/u/vinzBravo)\
**Post date:** [December 12, 2024, 9:03am UTC](https://forum.pritunl.com/t/import-authorities-keys-from-another-pritunl-zero-management/2628/4 "2024-12-12T09:03:05Z")

</div>

Hello  
Little feedback to tell that all work’s as expected with @zach command line.

Thanks a lot
