//home | tags | archives | about | grosu.nl | eulinux.org | RSS Feed

Backup mikrotik router configs with rancid

floyd - Sat 08 February 2020 - rancid, mikrotik

Ok, I've had this running for years now, so this is mostly a 'do not forget' note-to-self. Rancid supports backing up MikroTik RouterOS configuration.

Add a readonly user to your RouterOS device:

/user add group=read name=rancid disabled=no password=huwakui5phiiVahnuecheiri
# use a long random password

Add the user/password to your .cloginrc:

add user rancid
add noenable 1
add password huwakui5phiiVahnuecheiri
add method ssh

... and add the router to router.db:;mikrotik;up