Community discussions

MikroTik App
 
erkel
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 58
Joined: Sun May 27, 2007 12:04 pm

extract contents of backup file

Wed Jun 23, 2010 7:50 am

Hi,

I have a backup file that was made on a RB532, but when I try to restore it to a RB450AH or RB433AH it causes them to freeze up during the subsequent reboot, so I cannot access the configuration information.

Is there a simple way of extracting the backup file, so that I can get a dump of the configuration.

Cheers

Stephen
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: extract contents of backup file

Wed Jun 23, 2010 8:01 am

http://wiki.mikrotik.com/wiki/Manual:Co ... escription
The configuration backup can be used for backing up MikroTik RouterOS configuration to a binary file, which can be stored on the router or downloaded from it using FTP for future use. The configuration restore can be used for restoring the router's configuration, exactly as it was at the backup creation moment, from a backup file. The restoration procedure assumes the cofiguration is restored on the same router, where the backup file was originally created, so it will create partially broken configuration if the hardware has been changed.
See the same link for how to do text link exports, which you can strip of specific information (MAC addresses etc.) and apply to other devices.
 
erkel
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 58
Joined: Sun May 27, 2007 12:04 pm

Re: extract contents of backup file

Wed Jun 23, 2010 8:33 am

Cheers,

I do not have a 532 that I can load it on and then export, so do not see any easy way. I can read some of the contents by opening it up in a text editor, but not much.
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: extract contents of backup file

Wed Jun 23, 2010 2:35 pm

I use export and import. They are much better at that than backup. The file contains all the commands to set up a new router, and text editor compatible. I have not tried it across a major update version, like going from V3.x to V4.x, so beware of that.

This is covered in the link fewi posted. It is the command following "backup". If you don't have that 532 to restore to, then you will probably need to re-enter the setup in one of your new routers, then export that for new setups.
 
Feklar
Forum Guru
Forum Guru
Posts: 1724
Joined: Tue Dec 01, 2009 11:46 pm

Re: extract contents of backup file

Thu Jun 24, 2010 11:45 pm

Export works very well, just with some versions they change some syntax in the configuration, so you are going to have to watch for that. Like from 4.5 to I believe 4.6 they changed the DHCP menu, so that portion of the export would not work very well. The best thing to do is open up an SSH session and watch for the errors as it scrolls across so you know where you'll need to look for the broken parts.

Who is online

Users browsing this forum: Bing [Bot], rprandini01, unhuzpt and 115 guests