Mikrotik backup in form of text script

Taking care of your Linux box.
Post Reply
osama1
Lance Naik
Posts: 33
Joined: Fri Jul 17, 2009 10:02 am

Mikrotik backup in form of text script

Post by osama1 »

I want to take backup of my dhcp setting. I just want to see the configuration in form of script and then take backup in form of text script not binary. ANy one know how to do that.
mudasir
Captain
Posts: 565
Joined: Tue Oct 17, 2006 5:23 am
Location: Dubai
Contact:

Post by mudasir »

Hi,

As for your first statement
I want to take backup of my dhcp setting
Is someone stopping you for this.

And as for your last statement
ANy one know how to do that
Yes many people here know how to do this, its very simple.
Kind Regards
Mudasir Mirza (RHCE)
(+971)55-1045754
http://www.crystalnetworks.org
http://www.diglinux.com
osama1
Lance Naik
Posts: 33
Joined: Fri Jul 17, 2009 10:02 am

Post by osama1 »

Well previously I didnt know about it but now I know.

Just to close the thread

/ip dhcp-server> export file=ip_backup
mudasir
Captain
Posts: 565
Joined: Tue Oct 17, 2006 5:23 am
Location: Dubai
Contact:

Post by mudasir »

Hi,

The command you have given will not work. Below is the command that will work like a charm

# For detailed info
/ip dhcp-server export file=dhcp.rsc

You can also perform the same from Linux like below

# Taking backup of mikrotik dhcp-server config from Linux
root@crystalnetworks:~#ssh admin@mikrotik-ip /ip dhcp-server export > /path/to/file.log

Same can be done for almost all other mikrotik services
Kind Regards
Mudasir Mirza (RHCE)
(+971)55-1045754
http://www.crystalnetworks.org
http://www.diglinux.com
Post Reply