{"id":16312,"date":"2025-01-21T08:57:15","date_gmt":"2025-01-21T07:57:15","guid":{"rendered":"https:\/\/roglacup.com\/klaus62\/?p=16312"},"modified":"2025-01-21T08:57:18","modified_gmt":"2025-01-21T07:57:18","slug":"restoring-a-mikrotik-from-a-backupadmiral","status":"publish","type":"post","link":"https:\/\/roglacup.com\/klaus62\/2025\/01\/21\/restoring-a-mikrotik-from-a-backupadmiral\/","title":{"rendered":"Restoring a MikroTik from a Backup|Admiral"},"content":{"rendered":"\n<p><\/p>\n\n\n\n<p>Occasionally the need to restore a MikroTik configuration occurs and we\u2019re here to help. Today\u2019s blog post will show how you can restore from a RemoteWinBox backup, which is also the same process as restoring from a MikroTik command line \/export.<\/p>\n\n\n\n<p>The first thing to know is that there are 2 types of backups that most users utilize \u2013&nbsp;<strong>binary<\/strong>&nbsp;<mark>backups<\/mark>&nbsp;and&nbsp;<strong>text<\/strong>&nbsp;<mark>exports<\/mark>.<\/p>\n\n\n\n<p>We won\u2019t be talking about the backup\/restore functions because they limit restoring a configuration only to the exact same router model, but you can learn more about binary backups here:&nbsp;<a href=\"https:\/\/wiki.mikrotik.com\/wiki\/Manual:System\/Backup\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/wiki.mikrotik.com\/wiki\/Manual:System\/Backup<\/a><\/p>\n\n\n\n<p>RemoteWInBox takes automatic backups every day by running a \/export over SSH and stores the output on our servers. If you have an export, you are ready to restore a router\u2019s configuration to the same unit, a different Tik of the same model, or another MikroTik of a completely different model pretty easily.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"0-toc-title\">Restoring to the same MikroTik<\/h2>\n\n\n\n<p>This is the easiest scenario!<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Download your backup<\/strong>\u00a0of choice from your RemoteWinBox account by navigating to ROUTER LIST, selecting the BACKUPS tab, finding the MikroTik you\u2019d like to restore and click the yellow storage icon below ACTIONS.\n<ul class=\"wp-block-list\">\n<li>Then select the date of the backup you\u2019d like to download and click the DOWNLOAD button and your browser will prompt you to save the backup to your local computer (or it will auto-save it to your downloads folder, depending on your browser settings)<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Upload your backup<\/strong>\u00a0to your Mikrotik. Open WinBox and connect to your MikroTik and drag and drop your downloaded .RSC file from step 1 to your WinBox window.\n<ul class=\"wp-block-list\">\n<li>note: you could also use ssh\/scp\/ftp\/telnet if you prefer commandline, but we won\u2019t go into that here<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Reset and restore the configuration of your MikroTik<\/strong>\u00a0\u2013 we suggest keeping users by ticking the\u00a0<strong>KEEP USERS<\/strong>\u00a0checkbox and ensure you also tick the checkbox for\u00a0<strong>NO DEFAULT CONFIGURATION<\/strong>, and then also click the drop down for\u00a0<strong>RUN AFTER RESET<\/strong>\u00a0to select the backup file you just uploaded\n<ul class=\"wp-block-list\">\n<li>For those who prefer commandline: \/system reset-configuration keep-users=yes no-defaults=yes run-after-reset=my-backup.from.remotewinbox.download.rsc<\/li>\n\n\n\n<li>note: replace the file-name with the file you downloaded (it should look something like year-month-day.rsc ex: 2023-06-13-14-20.rsc)<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>The router will reboot and apply your previous configuration!<\/li>\n\n\n\n<li><strong>NOTE<\/strong>: User accounts (for logging in with Winbox) are\u00a0<strong>NOT<\/strong>\u00a0stored and need to re-added manually!<\/li>\n<\/ol>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"1-toc-title\">Restoring to a different MikroTik that\u2019s the same model<\/h2>\n\n\n\n<p>Still pretty easy, but you\u2019ll want to sanitize the configuration to prevent<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Download your backup<\/strong>\u00a0of choice from your RemoteWinBox account by navigating to ROUTER LIST, selecting the BACKUPS tab, finding the MikroTik you\u2019d like to restore and click the yellow storage icon below ACTIONS.\n<ul class=\"wp-block-list\">\n<li>Then select the date of the backup you\u2019d like to download and click the DOWNLOAD button and your browser will prompt you to save the backup to your local computer (or it will auto-save it to your downloads folder, depending on your browser settings)<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Open the backup file using your favorite editor<\/strong>, like Notepad, TextEdit, vi\/nano, etc. to do some cleanup and sanitize the configuration. Look for any references that specify a MAC-ADDRESS and delete that section of the command. You may also want to look for anything specific to the hardware you\u2019re replacing, but usually MAC is the only thing you should clear out. (Not because it won\u2019t work, but because troubleshooting later will be easier when using burned-in mac-addresses instead of overriding)\n<ul class=\"wp-block-list\">\n<li>For example, if I found this in my configuration:\n<ul class=\"wp-block-list\">\n<li>\/interface bridge<br>add\u00a0<mark><strong>admin-mac=CC:2D:E0:63:1C:60 auto-mac=no<\/strong><\/mark>\u00a0comment=defconf name=bridge<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>I\u2019d change that to:\n<ul class=\"wp-block-list\">\n<li>\/interface bridge<br>add comment=defconf name=bridge<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Don\u2019t forget VPLS mac if you\u2019ve configured MPLS\/VPLS<\/li>\n\n\n\n<li>Once done reviewing your configuration, save it and it\u2019s ready for upload or copy+paste<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Upload your backup<\/strong>\u00a0to your Mikrotik. Open WinBox and connect to your MikroTik and drag and drop your downloaded .RSC file from step 1 to your WinBox window.\n<ul class=\"wp-block-list\">\n<li>note: you could also use ssh\/scp\/ftp\/telnet if you prefer commandline, but we won\u2019t go into that here<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Reset and restore the configuration of your MikroTik<\/strong>\u00a0\u2013 we suggest keeping users by ticking the\u00a0<strong>KEEP USERS<\/strong>\u00a0checkbox and ensure you also tick the checkbox for\u00a0<strong>NO DEFAULT CONFIGURATION<\/strong>, and then also click the drop down for\u00a0<strong>RUN AFTER RESET<\/strong>\u00a0to select the backup file you just uploaded\n<ul class=\"wp-block-list\">\n<li>For those who prefer commandline: \/system reset-configuration keep-users=yes no-defaults=yes run-after-reset=my-backup.from.remotewinbox.download.rsc<\/li>\n\n\n\n<li>note: replace the file-name with the file you downloaded (it should look something like year-month-day.rsc ex: 2023-06-13-14-20.rsc, unless you renamed it when you saved in step 2)<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>The router will reboot and apply your previous configuration!<\/li>\n\n\n\n<li><strong>NOTE<\/strong>: User accounts (for logging in with Winbox) are\u00a0<strong>NOT<\/strong>\u00a0stored and need to re-added manually!<\/li>\n<\/ol>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"2-toc-title\">Restoring to a different MikroTik that\u2019s a different model<\/h2>\n\n\n\n<p>This one is a little more work and you\u2019ll need to pay attention to detail during sanitation because a single mistake will prevent configuration acceptance.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Download your backup<\/strong>\u00a0of choice from your RemoteWinBox account by navigating to ROUTER LIST, selecting the BACKUPS tab, finding the MikroTik you\u2019d like to restore and click the yellow storage icon below ACTIONS.\n<ul class=\"wp-block-list\">\n<li>Then select the date of the backup you\u2019d like to download and click the DOWNLOAD button and your browser will prompt you to save the backup to your local computer (or it will auto-save it to your downloads folder, depending on your browser settings)<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Open the backup file using your favorite editor<\/strong>, like Notepad, TextEdit, vi\/nano, etc. to do some cleanup and sanitize the configuration. Look for any references that specify a MAC-ADDRESS or interface and delete that section of the command. You will also want to look for anything specific to the hardware you\u2019re replacing because if you replace a MikroTik that had 11 ethernet ports and POE out on 11 with another model that has 5 ethernet ports, POE out on 5 and upgrading to SFP, you\u2019ll have some work to do to get it right.\n<ul class=\"wp-block-list\">\n<li>For example, if I found this in my configuration:\n<ul class=\"wp-block-list\">\n<li>Original\n<ul class=\"wp-block-list\">\n<li>\/interface bridge<br>add\u00a0<mark><strong>admin-mac=CC:2D:E0:63:1C:60 auto-mac=no<\/strong><\/mark>\u00a0comment=defconf name=bridge<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>I\u2019d change that to:\n<ul class=\"wp-block-list\">\n<li>\/interface bridge<br>add comment=defconf name=bridge<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Don\u2019t forget VPLS mac if you\u2019ve configured MPLS\/VPLS<\/li>\n\n\n\n<li>Another example \u2013 POE moving from port 11 to port 5\n<ul class=\"wp-block-list\">\n<li>Original\n<ul class=\"wp-block-list\">\n<li>\/interface ethernet<\/li>\n\n\n\n<li>set [ find default-name=ether11 ] poe-out=forced-on<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>becomes:\n<ul class=\"wp-block-list\">\n<li>\/interface ethernet<\/li>\n\n\n\n<li>set [ find default-name=ether5 ] poe-out=forced-on<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>And if I have 11 ports on the bridge named \u201cSWITCH\u201d dropping down to 5 ports on my MikroTik\n<ul class=\"wp-block-list\">\n<li>Original\n<ul class=\"wp-block-list\">\n<li>\/interface bridge port<br>add bridge=SWITCH interface=ether11<br>add bridge=SWITCH interface=ether10<br>add bridge=SWITCH interface=ether9<br>add bridge=SWITCH interface=ether8<br>add bridge=SWITCH interface=ether7<br>add bridge=SWITCH interface=ether6<br>add bridge=SWITCH interface=ether5<br>add bridge=SWITCH interface=ether4<br>add bridge=SWITCH interface=ether3<br>add bridge=SWITCH interface=ether2<br>add bridge=SWITCH interface=ether1<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Change to:\n<ul class=\"wp-block-list\">\n<li>\/interface bridge port<br>add bridge=SWITCH interface=ether5<br>add bridge=SWITCH interface=ether4<br>add bridge=SWITCH interface=ether3<br>add bridge=SWITCH interface=ether2<br>add bridge=SWITCH interface=ether1<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Say I need to swap from ether1 WAN to SFP+ WAN\n<ul class=\"wp-block-list\">\n<li>make sure to change instances of IP addresses, OSPF and\/or BGP configuration, firewall rules, interface lists + members, NAT rules, etc.\n<ul class=\"wp-block-list\">\n<li>go through the configuration file and change everywhere it says \u201cether1\u201d to \u201csfp-sfpplus1\u201d<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Once done reviewing your configuration, save it and it\u2019s ready for upload or copy+paste<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Upload your backup<\/strong>\u00a0to your Mikrotik. Open WinBox and connect to your MikroTik and drag and drop your downloaded .RSC file from step 1 to your WinBox window.\n<ul class=\"wp-block-list\">\n<li>note: you could also use ssh\/scp\/ftp\/telnet if you prefer commandline, but we won\u2019t go into that here<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Reset and restore the configuration of your MikroTik<\/strong>\u00a0\u2013 we suggest keeping users by ticking the\u00a0<strong>KEEP USERS<\/strong>\u00a0checkbox and ensure you also tick the checkbox for\u00a0<strong>NO DEFAULT CONFIGURATION<\/strong>, and then also click the drop down for\u00a0<strong>RUN AFTER RESET<\/strong>\u00a0to select the backup file you just uploaded\n<ul class=\"wp-block-list\">\n<li>For those who prefer commandline: \/system reset-configuration keep-users=yes no-defaults=yes run-after-reset=my-backup.from.remotewinbox.download.rsc<\/li>\n\n\n\n<li>note: replace the file-name with the file you downloaded (it should look something like year-month-day.rsc ex: 2023-06-13-14-20.rsc, unless you renamed it when you saved in step 2)<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>The router will reboot and apply your previous configuration!<\/li>\n\n\n\n<li><strong>NOTE<\/strong>: User accounts (for logging in with Winbox) are\u00a0<strong>NOT<\/strong>\u00a0stored and need to re-added manually!<\/li>\n\n\n\n<li><strong>NOTE: WARNING!<\/strong>\u00a0If there\u2019s an incompatible command \u2013 for example you forgot to scrub out an ether6 somewhere and this router only has 5 ports, the configuration will fail to apply and the router will have no configuration. When this happens to me, I personally like to go line by line using copy + paste instead of using the RSC method so that I can see at the CLI if there\u2019s any errors in the configurations.<\/li>\n<\/ol>\n\n\n\n<p><a href=\"https:\/\/krebsonsecurity.com\/2021\/09\/krebsonsecurity-hit-by-huge-new-iot-botnet-meris\/\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/krebsonsecurity.com\/2021\/09\/krebsonsecurity-hit-by-huge-new-iot-botnet-meris\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Occasionally the need to restore a MikroTik configuration occurs and we\u2019re here to help. Today\u2019s blog post will show how you can restore from a RemoteWinBox backup, which is also the same process as restoring from a MikroTik command line \/export. The first thing to know is that there are 2 types of backups that&hellip;&nbsp;<a href=\"https:\/\/roglacup.com\/klaus62\/2025\/01\/21\/restoring-a-mikrotik-from-a-backupadmiral\/\" class=\"\" rel=\"bookmark\">Read More &raquo;<span class=\"screen-reader-text\">Restoring a MikroTik from a Backup|Admiral<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":16313,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":0,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":"","footnotes":""},"categories":[4],"tags":[],"class_list":["post-16312","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-security"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/roglacup.com\/klaus62\/wp-json\/wp\/v2\/posts\/16312","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/roglacup.com\/klaus62\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/roglacup.com\/klaus62\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/roglacup.com\/klaus62\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/roglacup.com\/klaus62\/wp-json\/wp\/v2\/comments?post=16312"}],"version-history":[{"count":1,"href":"https:\/\/roglacup.com\/klaus62\/wp-json\/wp\/v2\/posts\/16312\/revisions"}],"predecessor-version":[{"id":16314,"href":"https:\/\/roglacup.com\/klaus62\/wp-json\/wp\/v2\/posts\/16312\/revisions\/16314"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/roglacup.com\/klaus62\/wp-json\/wp\/v2\/media\/16313"}],"wp:attachment":[{"href":"https:\/\/roglacup.com\/klaus62\/wp-json\/wp\/v2\/media?parent=16312"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/roglacup.com\/klaus62\/wp-json\/wp\/v2\/categories?post=16312"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/roglacup.com\/klaus62\/wp-json\/wp\/v2\/tags?post=16312"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}