Site icon System Zone

MikroTik Router Auto Backup via Email

MikroTik Router is popularly used in not only ISP network but also enterprise office network. So, network administrators of any company should learn how to maintain MikroTik router properly. A regular task of a network administrator is to store configuration file backup. Almost every network administrator takes configuration file backup manually. But MikroTik router provides an E-mail tool by which network administrators can automate configuration file backup regularly via email and can reduce his/her daily manual task easily. E-mail tool is not configured by default in MikroTik router. So, network administrators must configure E-mail tool as well as do some scripting for getting email backup service. In this article, I will show you how to configure MikroTik E-mail tool to get configuration file backup via email with a few steps.

MikroTik Router Automated Email Backup Configuration

Now we will 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 router, first we need to configure sender email. MikroTik does not have a SMTP server. For this, we have to provide SMTP server as well as username and password so that MikroTik router can send mail through that SMTP server. So, to setup SMTP server and username and password in your MikroTik router, follow my below steps carefully.

If everything is OK, the test email will be sent to the receiver email address. Email configuration has been completed if you follow above steps carefully. Now we will 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 no 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 your MikroTik router.

Script for storing configuration backup file and sending the file via email is now ready. Now we will 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 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 your MikroTik router, follow my 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 the above steps one by one otherwise your desired result may not come. If you face difficulty to do above steps properly, please watch my 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 are now able to configure your MikroTik Router for sending configuration file backup via email. If you face any problem, feel free to discuss in comment or contact with from Contact page. I will try my best to stay with you.

Exit mobile version