Moving MikroTik configuration

Sdílet
Vložit
  • čas přidán 22. 09. 2022
  • Export, import and mass configuration tips and tricks. Ever had to clone configuration or import thousands of similar rules? This video is for you
    help.mikrotik.com/docs/displa...
    ^ more answers in there
  • Věda a technologie

Komentáře • 38

  • @SiBex_ovh
    @SiBex_ovh Před rokem +16

    *) Binary backup files without encryption can be moved to other device but you need reset mac-address and fix wlanX name of interface.
    *) Text backup files are official to move config to other device but you need sometimes edit this code thats good additional option is "terse" - check it and remember that ros must have EMPTY CONFIGURATION before import file.
    *) Good practice is to assign interface to bridge - then after move to differ model of RB you just assign proper interface to bridge and RB11xx is so easy to move to other one.
    *) Good idea is put in some place of text backup file the lines /log warning "CheckPoint 5" and you can track when your import stops in logs.
    *) If you want use your text backup in /system reset-configuration run-script=export.rsc then this file MUST HAVE a "/delay 30s" in first lines to give time to UP all Interfaces and then this will work (of code is ok).

  • @piotrkasprzyk9159
    @piotrkasprzyk9159 Před rokem +1

    Very useful for me, thank you for this feature!

  • @graog123
    @graog123 Před rokem

    Yes! I've been waiting for this exact tutorial so I can be more confident about playing around with my Mikro at home without fucking up my ISP's initial config

  • @Supermunch2000
    @Supermunch2000 Před rokem

    Whoawhoawhoawhoawhoa...
    Default configuration file through resets via netinstall? HOLY BANANAS!!!! I F***ING LOVE MIKROTIK!

  • @frankh.4420
    @frankh.4420 Před rokem +5

    You forgot the certificates. These have to be manually exported and reimported on the other system. If the keys are password-encrypted you must know the previously used passwords. Mostly it should be no problem to generate new certificates - simplier if you can export and import the ca certificate with its revocation-list and know its password :-) Otherwise there is eventually more work to do.
    Sometimes its a little bit tricky to import a configuration in a running system. Then use "verbose" import and repeat it with the last line numbers, where errors occurred - eventually dropping some lines, that failed and configure them manually afterwards.

    • @magdalinemwei6212
      @magdalinemwei6212 Před rokem

      Hey how do I get to know the username and password of ethernet cable hotspot I mean the log in details

    • @frankh.4420
      @frankh.4420 Před rokem

      ​@@magdalinemwei6212 If you do not get into the configuration, because you don´t know username or password of the device, you can not backup it. The only option then is a factory-reset and creating a new one. If you have access to the device and you mean the uplink-channel - perhaps you forgot to export the sensitive data (like user and password) (you must use "-hide-sensitive=no" to export sensitive data like passwords and usernames).

  • @shaunclarke94
    @shaunclarke94 Před rokem +8

    Export also doesn't include certificates.

    • @user-wu4cw5ed5w
      @user-wu4cw5ed5w Před rokem +1

      I suggest moving those separately, shouldn't be a hassle

  • @xerr0n
    @xerr0n Před rokem

    was that Sublime text at the end or another text editor?

  • @BattousaiHBr
    @BattousaiHBr Před rokem

    on the topic of moving configuration, i just lost over 12 hours of work in v7.5 setting up a new system because when i rebooted almost all configuration was gone. i noticed something was arwy when i would sometimes close the routing filters and reopen them and lines would switch around and some would go missing unexplainably.
    please make sure this absolutely never happens!
    if it's any help, it might be related tu using the "undo" feature for routing filter changes, as that was the first time i noticed the weird stuff, i would press it and nothing would apparently happen even though the log was showing filters being changed.

  • @erfangholizadeh
    @erfangholizadeh Před rokem

    could you make a video using mikrotik as a router for starlink (instead of default router) ?

  • @me.ko.i1279
    @me.ko.i1279 Před rokem +1

    Cool hat

  • @drumaddict89
    @drumaddict89 Před rokem

    nice hat ^^

  • @AshleySutherland
    @AshleySutherland Před rokem +1

    Is there a way I can export everything in once go? User Manager, files and everything?

    • @nefastobrasil4079
      @nefastobrasil4079 Před rokem

      I wish this had a more user friendly option too. Something that you could click and generate a full config file that you could then move to another Mikrotik router (via USB, FTP, drag&drop, whatever) and then click again to apply. The tool itself would ask you what's missing for a full config migration or what isn't compatible between devices (if you could select what it is going to applied into) and then you'd amend accordingly. If it did all this to an external USB storage device then it could ask the user it they wanted to copy the required files, like certificates or other files stored in /flash. Not everybody is keen on jumping on a terminal window and fear not to mess up something important doing so. =)

  • @OstJoker
    @OstJoker Před rokem

    Great TEORETICAL video. In real life, without editing config you will 99% fail importing config as it reports failure wright after command that add interface to bridge and will stop importing. On the second attempt it will report that interface already exist. LOL. I have no clue what for you posted this video.

    • @mikrotik
      @mikrotik  Před rokem

      It should not happen. Report a bug to support@mikrotik.com

  • @HiltonT69
    @HiltonT69 Před rokem +1

    "Special branding package"? Do you have more info on that?

  • @user-bm4sm6vk4h
    @user-bm4sm6vk4h Před rokem

    Где взять такую симпатичную кружку?

  • @drumaddict89
    @drumaddict89 Před rokem

    the *.auto-rsc feature is a VERY hot topic for security...

    • @mikrotik
      @mikrotik  Před rokem +3

      If your attacker can upload files with SFTP, all is lost anyway. Protect your device first.

    • @drumaddict89
      @drumaddict89 Před rokem

      @@mikrotik that's true
      always protect a tik first and foremost

  • @siraky4879
    @siraky4879 Před rokem

    Any idea in how to migrate Userman ???? That would be helpful

    • @AshleySutherland
      @AshleySutherland Před rokem

      If you find out, I'm also looking

    • @siraky4879
      @siraky4879 Před rokem

      @@AshleySutherland hi I think I have found solution manually you have to back up the database called usemanagersqldb

  • @alexandroskolkov2231
    @alexandroskolkov2231 Před rokem

    is tftp uload via fetch fixed ? "failure: only [s]ftp modes support upload" /tool/fetch mode=tftp upload=yes

    • @mikrotik
      @mikrotik  Před rokem

      This is not a bug. Upload is only supported for SFTP/FTP, it is in the documentation

    • @alexandroskolkov2231
      @alexandroskolkov2231 Před rokem

      @@mikrotik yes, but tftp can upload and it's good for mikrotik to have it. i think ;) tftpd easy to deploy and share data beetwen mikrotik and other network infrastructure. save configs, up/down load ACLs by schedule, etc

    • @deineroehre
      @deineroehre Před rokem

      @@alexandroskolkov2231 setting up e.g. vsftpd is as easy as an tftpd server, so what would be the point?

    • @alexandroskolkov2231
      @alexandroskolkov2231 Před rokem

      @@deineroehre the meaning of being able to upload via tftp

  • @Gabi-ct3sz
    @Gabi-ct3sz Před rokem +2

    Any plans on providing a new modern web based configuration interface?

    • @mikrotik
      @mikrotik  Před rokem +6

      Web based no, but modern app could be coming next year

  • @chrislane5670
    @chrislane5670 Před rokem +1

    still don't understand how to make the imported file the Default file... u sort of skimmed that part
    Thanks

    • @mikrotik
      @mikrotik  Před rokem

      You can’t! To make it default, you must use Netinstall and choose the file there

  • @thesoppywanker
    @thesoppywanker Před rokem +2

    Yea yea yea yea yea... Where do I get that hat???