Test Configuration and Recover in Case of Failure (MikroTik).

There are times when it is necessary to test configurations and there is the possibility of losing the connection with the device if it is being done remotely, it should be noted that there is safemode but in some cases it is necessary to restart some services.

It consists of making a backup and restore it automatically at a set time.


Configuration backup

First make a backup where there is still the connection with the device

It can also be done graphically using WebFig or Winbox.

1
/system backup save name=A1

A1: equals the name of the backup file (A1.backup).

Equivalent to doing it graphically:
Backup A1

Plan the restoration

1
2
3
/system scheduler add name=recoveryConfiguration start-date=Nov/24/2018 start-time=02:00:00 interval="1d 00:00:00" policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon,dude on-event={/system backup load name=A1.backup password=myPassword
:delay 2
:put y } comment="recoveryConfiguration"

In this example, the A1.backup backup will be restored to2 AM and the connection to the device will be recovered.

Equivalent to doing it graphically:
Scheduler Recovery

© 2020 Juvenal Yescas All Rights Reserved.
Theme by hiero