fbpx

Chapter 2.8 – Configuration backup management

Router identity (system identity)

Although it is not a tool, it is important to establish the identity of the system

  • You cannot have a network with 100 routers and all of them have the same name “Mikrotik”. This makes troubleshooting almost impossible.
  • Once established, the router with which you are working will be identified and will make the identification much simpler.
  • Syntax:
/system identity print
Name: Mikrotik

/system identity set name=my-router

/system identity print
Name: my-router
Wimbox System Identity - router identity in MikroTik

Setting a password

By default when starting on a MikroTik computer we start with these credentials:

  • User: admin
  • Key: “blank”

With the option (system/password) you can define an administration password for the user “admin”

The backup Configuration (backups) can be used to backup the configuration of a MikroTik RouterOS to a binary file, which can be stored on the router or downloaded via FTP for future use.

The option restore (restore) can be used to recover the router configuration, as it was at the time the backup was created, from a backup file.

The option export can be used to dump full or partial Mikrotik RouterOS configuration to the console screen or to a text file, which can be downloaded from the router using the FTP protocol.

Types of Backups

  • Binary Backup
  • export command

Binary Backup

  • Perform a full system backup
  • Includes passwords and users
  • The backup files will be saved by default on the same router.

It is recommended that the backup file be saved on a PC or on an external drive since it would be illogical for it to be saved on the same device. “N” backup files can be generated, and it is saved by default, with host name, year, date, time.

export command

  • You can view the complete or partial configuration
  • The command is used compact to show non-default settings
  • Sentence print allows you to view partial or total configuration. If only the command is entered on the main page export, then all router configuration is backed up
/export file = file_name
  • The export command does NOT support router users.
/ip firewall filter export
# jan/01/2014 01:58:17 by RouterOS 5.24
# software id = PEVF-794H
#
/ip firewall filter
Add action=Accept chain=input comment=”default configuration” disabled=no \
Protocol=icmp
Add action=Accept chain=input comment=”default configuration” disabled=no \
Connection-state=established
Add action=Accept chain=input comment=”default configuration” disabled=no \
Connection-state=related
Add action=drop chain=input comment=”default configuration” disabled=no \
Protocol=ethernet-gateway

Cloud Backup

Starting with RouterOS v6.44 it is possible to ensure the storage of our device's backup files on MikroTik's cloud servers. The backup service allows you to upload encrypted backup files, download them and apply the backup file to our router as long as it can reach the MikroTik cloud server. Important data must be taken into account to work with this new option for the backup service:

  • 1 free backup slot for each device
  • Allowed backup size: 50 MB
  • Send encrypted packets to cloud2.mikrotik.com using ports UDP/15252 and TCP/15252

To create a new backup and upload it to the MikroTik cloud server we use the following command:

/system backup cloud upload-file name=test action=create-and-upload password=test1234 

To download the previously uploaded backup file and save it on the router, we use the following command:

/system backup cloud download-file action=download number=0

It can also be used

/system backup cloud download-file action=download\
secret-download key=AbCdEfGhIjKlM1234567890

Save Backup Files

  • Once the backup files have been generated, it is recommended to copy them to a server
      • Via SFTP as recommended
      • FTP (Enabled in the IP Services menu
      • Drag and Drop using the Files window
  • Leaving backup files on the router is not good practice or at least not recommended. Routers do not make backups to tapes or CDs.
There are no tags for this post.
Did this content help you?
Facebook
Twitter
LinkedIn
WhatsApp
Telegram

Other documents in this category

Leave your comment

Your email address will not be published. Required fields are marked with *

Tutorials available at MikroLABs

No Courses Found!

DISCOUNT CODE

AN24-LIB

applies to MikroTik books and book packs

Days
Hours
Minutes
Seconds

Introduction to
OSPF - BGP - MPLS

Sign up for this Free course

MAE-RAV-ROS-240118
Days
Hours
Minutes
Seconds

Sign up for this Free course

MAS-ROS-240111

Promo for Three Kings Day!

KINGS24

15%

all the products

MikroTik courses
Academy courses
MikroTik books

Take advantage of the Three Kings Day discount code!

* promotion valid until Sunday January 7, 2024
** the code (KINGS24) applies to shopping cart
*** buy your course now and take it until March 31, 2024

New Year's Eve Promo!

NY24

20%

all the products

MikroTik courses
Academy courses
MikroTik books

Take advantage of the New Year's Eve discount code!

* promotion valid until Monday, January 1, 2024
** the code (NY24) applies to shopping cart
*** buy your course now and take it until March 31, 2024

Christmas discounts!

XMAS23

30%

all the products

MikroTik courses
Academy courses
MikroTik books

Take advantage of the discount code for Christmas!!!

**codes are applied in the shopping cart
Promo valid until Monday December 25, 2023

CYBER WEEK DISCOUNTS

CW23-MK

17%

all MikroTik OnLine courses

CW23-AX

30%

all Academy courses

CW23-LIB

25%

all MikroTik Books and Book Packs

Take advantage of the discount codes for Cyber ​​Week!!!

**codes are applied in the shopping cart
Promo valid until Sunday December 3, 2023

BLACK FRIDAY DISCOUNTS

BF23-MX

22%

all MikroTik OnLine courses

BF23-AX

35%

all Academy courses

BF23-LIB

30%

all MikroTik Books and Book Packs

Take advantage of the discount codes for Black Friday!!!

**Codes are applied in the shopping cart

codes are applied in the shopping cart
valid until Sunday November 26, 2023

Days
Hours
Minutes
Seconds

Sign up for this Free course

MAE-VPN-SET-231115

Halloween promo

Take advantage of discount codes for Halloween.

Codes are applied in the shopping cart

HW23-MK

11% discount on all MikroTik OnLine courses

11%

HW23-AX

30% discount on all Academy courses

30%

HW23-LIB

25% discount on all MikroTik Books and Book Packs

25%

Register and participate in the free course Introduction to Advanced Routing with MikroTik (MAE-RAV-ROS)

Today (Wednesday) October 11, 2023
7pm to 11pm (Colombia, Ecuador, Peru)

MAE-RAV-ROS-231011