How to export Network Routes? #1726

Closed
opened 2025-11-20 06:05:31 -05:00 by saavagebueno · 2 comments
Owner

Originally created by @netandreus on GitHub (Mar 18, 2025).

How can I export list of all my Network Routes from NetBird self-hosted installation?

Originally created by @netandreus on GitHub (Mar 18, 2025). How can I export list of all my Network Routes from NetBird self-hosted installation?
Author
Owner

@nazarewk commented on GitHub (Mar 18, 2025):

  1. You can use a REST API to store the resulting JSON responses. Your best bet would be querying all of the list endpoints, because object id fields are used for relations and you might not have all the data to replicate on a new instance.
  2. You could probably just dump the database since you're self-hosting, one of tables should be holding the Network Route information
@nazarewk commented on GitHub (Mar 18, 2025): 1. You can use a REST API to store the resulting JSON responses. Your best bet would be querying all of the `list` endpoints, because object `id` fields are used for relations and you might not have all the data to replicate on a new instance. 2. You could probably just dump the database since you're self-hosting, one of tables should be holding the Network Route information
Author
Owner

@netandreus commented on GitHub (Mar 18, 2025):

Thanks, @nazarewk I did this with help of API.

curl -X GET https://xxxxx.com/api/routes \
-H 'Accept: application/json' \
-H 'Authorization: Token yyyyyyyyy' 
@netandreus commented on GitHub (Mar 18, 2025): Thanks, @nazarewk I did this with help of API. ``` curl -X GET https://xxxxx.com/api/routes \ -H 'Accept: application/json' \ -H 'Authorization: Token yyyyyyyyy' ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#1726