//home | my other blog | github | twitter | about

Backup mikrotik router configs with rancid

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