Download exported Mikrotik config
Solution 1:
Since the '/export' command dumps the configuration to stdout, I do always backup my mikrotiks vía ssh this way:
~$ ssh admin@router /export > mikrotik.conf
Solution 2:
First off, the use of FTP is NOT recommended as your password is sent in cleartext, and anyone looking at your traffic can sniff it.
IF you want to use FTP, make sure it is enabled under IP > Services
. Then go to your terminal, and export the file using the command export file=myname
. The file will then be under the File
menu as myname.rsc
.
You then browse to your router's external IP address in a browser, or just in Windows Explorer, using ftp://XXX.XXX.XXX.XXX
and log in. You will be able to Right click on the file and Save As
to your computer.
Solution 3:
A small addition:
You can actually use SFTP in case you are using ssh-keys to access the System. See the MikroTik wiki: https://wiki.mikrotik.com/wiki/Using_SSH_for_system_backup
Though not well documented, the Mikrotik supports sftp using the same ssh key system
Would be something like that (if you have a ssh-agent that handles the key):
sftp myuser@mymtik:todays_mtik.backup ./local_backup_dir/todays_mtik.backup
Or use the arguments -i
or -oIdentityFile=
to specify the ssh key you are using to connect:
sftp -i ~/.ssh/my-ssh-key myuser@mymtik:todays_mtik.backup ./local_backup_dir/todays_mtik.backup