Recover from config error

Today I was working on a Mikrotik Router (RB951g) over the internet and I did something that i shouldnt have done and lost connection to it, now I have to go there to restore it…

That got me thinking…, how can I make sensitive changes to reverse when this happens?

I think Juniper, Cisco and Ubiquiti have this functionality…

Any help?

You can use safe mode while managing in console mode or winbox.

EDIT: Also from Winbox - I was misinformed.

You can use the ‘Safe mode’ button in winbox.
This will reverse any changes if you disconnect from the session unless you click it again to apply them permanently.
The ‘Ctrl+X’ keyboard combination can be used to achieve the same in terminal.