I use Mikrotik routers a lot! I work for a WISP and there are a lot of Mikrotik devices.
This script requires a public key ssh access to the router for a user to be setup first.
You can also pass the script -q to surpress any output.
I actually use this script in a cron job to backup a mikrotik daily.
I trim the first line from the text backup (which is a date stamp), so git can see the “true” changes.