Site icon System Zone

MikroTik Router Auto Backup via Email

MikroTik Router is popularly used not only in ISP network but also in enterprise office network. So, MikroTik is a popular item to network administrator. A regular task of a network administrator is to keep and store router configuration file backup.

Almost every network administrator takes configuration file backup manually. But MikroTik Router has an E-mail tool by which network administrators can automate configuration file backup regularly via email and can reduce his daily manual task easily.

E-mail tool is not configured by default in MikroTik RouterOS. So, network administrators must configure E-mail tool as well as do some scripting for getting email backup service. In this article, we are going to see how to configure MikroTik E-mail tool to get configuration file backup via email with a few steps.

mikrotik-mail-backup

MikroTik Router Automated Email Backup Configuration

We will now configure MikroTik E-mail tool so that it can send configuration file backup via email. Complete configuration for storing backup and then sending via email can be divided into 3 steps.

  1. Email configuration
  2. Writing script for storing backup and sending Email
  3. Creating scheduler for executing script regularly

Step 1: MikroTik Router Email Configuration

For sending email from MikroTik RouterOS, we first need to configure sender email. MikroTik does not have a SMTP Server. For this, we have to provide SMTP server as well as email username and password so that MikroTik RouterOS can send mail through that SMTP Server.

So, to setup SMTP Server and email username and password in MikroTik RouterOS, follow the below steps carefully.

If everything is OK, the test email will be sent to the receiver email address. We will now write script for storing backup file and sending via mail.

Step 2: Script for Storing Backup File and Sending via Email

After completing email configuration, we will now write a script that will store backup file and then send the backup file to the desired mail address. Follow below steps to write script in MikroTik RouterOS.

Script for storing configuration file backup and sending the file via email is now ready. We will now create a scheduler so that this script can be run regularly at a fixed time.

Step 3: Scheduler for Executing Script Regularly

We have created script for storing configuration file and sending via mail. But the script cannot execute itself. So, we have to create a scheduler that will execute the above script regularly at our desired time. For creating a scheduler in MikroTik RouterOS, follow below steps.

Scheduler is now ready. If everything is OK, MikroTik Router will send a mail regularly to the desired email address where configuration file should have attached.

You should follow above steps one by one otherwise your desired result may not come. If you face difficulty to do above steps properly, please watch the video tutorial carefully about MikroTik Router Auto Backup via Email. I hope, it will reduce your confusion.

Note: This configuration has been done in MikroTik Router OS version 5.20. If you face any problem in upgraded version, please let me know. I will try to solve the problem.

MikroTik Router configuration file backup via email has been discussed in this article. I hope, you will now be able to configure MikroTik Router for sending configuration file backup via email. If you face any problem, feel free to discuss in comment or contact me from Contact page. I will try my best to stay with you.

Exit mobile version