Hello Mikrotik Friends,
We have a bunch of Mikrotik devices (a RB4011, a bunch of CRS type switches and a bunch of APs) on our network. The management interfaces are in a VLAN which is forbidden from accessing the internet. We use M365 / Teams for our file storage - works very well for us.
What I’m trying to do is get an automatic config backup routine sorted that will backup the configs of our various devices and save them to a particular folder in our Teams storage. The save to Teams storage part is quite easy with .NET - I’ve got that bit more or less sorted.
Just looking for some advice how to do the config backup part.
I’ve already got some Mikrotik Scripts which create config backups and save to the internal storage in the Mikrotik device and I know that I can access these via FTP or similar… so I could write a console app that would do this… but this seems a bit clunky and I don’t want to have to write routines to manage the internal storage in the Mikrotik (i.e. what to do when it gets full).
My initial thought was to somehow use the Mikrotik API from a .NET console app to “get” the config somehow, either as a TextStream or whatever, and then save it to our cloud storage that way.
Does anyone either have a better idea, or any advice/ideas how to get a TextStream of the config via the API?
Thanks