Community discussions

MikroTik App
 
tavish1
just joined
Topic Author
Posts: 3
Joined: Wed Oct 02, 2013 8:45 pm

Using backup from one router in another?

Thu Oct 03, 2013 8:32 am

Hi

I am generating a backup in one router and using that to restore it into another one. The settings include wlan settings, scripts etc.
Is this supposed to work? Because I sent this file to someone with the same routerboard model (751u) and it is not working for them.

(i made this post yesterday too, but somehow its not there anymore)

Thanks!
 
User avatar
nawshad
Trainer
Trainer
Posts: 104
Joined: Wed Jul 23, 2008 2:19 pm
Location: Dhaka Bangladesh
Contact:

Re: Using backup from one router in another?

Thu Oct 03, 2013 11:06 am

Hi

I am generating a backup in one router and using that to restore it into another one. The settings include wlan settings, scripts etc.
Is this supposed to work? Because I sent this file to someone with the same routerboard model (751u) and it is not working for them.

(i made this post yesterday too, but somehow its not there anymore)

Thanks!
check backup originating router OS version and another router OS version is same then it should work. one important thing, when you directly restore backup to new router some time logical name of eher1 and physical ether1 sequence change, after restore backup you can test it by disable ether one and check practically ether1 port disabled or not. Do this test to all port. and rename all the ports accordingly if you found any mismatch.

this is very much boring job ;)

good luck
 
User avatar
pcunite
Forum Guru
Forum Guru
Posts: 1347
Joined: Sat May 25, 2013 5:13 am
Location: USA

Re: Using backup from one router in another?

Thu Oct 03, 2013 2:02 pm

Export your settings using /export compact file=some_backup_file and then go to the File menu and save it to your desktop. This way you can view and edit any changes. The thing to watch out for is the /interface ethernet menu where set 0 name=ether-BLAH1 and set 1 name=ether-BLAH2 can fail if your target device has one of them is already named something identical.

For example if you truly want 0 to be ether-BLAH2 the script won't work because there is already an ether-BLAH2. I wish it would renamed the existing to be ether-BLAH2(2) which would prevent naming errors.
 
Rudios
Forum Veteran
Forum Veteran
Posts: 977
Joined: Mon Mar 11, 2013 12:58 pm
Location: The Netherlands

Re: Using backup from one router in another?

Thu Oct 03, 2013 4:07 pm

It also depends a little on the way the backup is imported.
If you do it from scratch (eg /system reset-configuration no-defaults=yes run-after-reset=<filename>) most of the config will work.
Where it becoms tricky is when hotspot and usermanager packages are installed.
These packages create some default entries but in the config these are written as add commands.
Adding something that already exists is not possible, so on that point it fails.
The easiest way for you would probably be is delete the possible available rubbish.
Another option is uninstall (obviously only when unneeded) hotspto and usermanager from you system
 
User avatar
nawshad
Trainer
Trainer
Posts: 104
Joined: Wed Jul 23, 2008 2:19 pm
Location: Dhaka Bangladesh
Contact:

Re: Using backup from one router in another?

Thu Oct 03, 2013 9:20 pm

Hi

I am generating a backup in one router and using that to restore it into another one. The settings include wlan settings, scripts etc.
Is this supposed to work? Because I sent this file to someone with the same routerboard model (751u) and it is not working for them.

(i made this post yesterday too, but somehow its not there anymore)

Thanks!
check backup originating router OS version and another router OS version is same then it should work. one important thing, when you directly restore backup to new router some time logical name of eher1 and physical ether1 sequence change, after restore backup you can test it by disable ether one and check practically ether1 port disabled or not. Do this test to all port. and rename all the ports accordingly if you found any mismatch.

this is very much boring job ;)

good luck
Mr. Tavis:

Do you able to transfer the backup configuration? let know the result.
 
tavish1
just joined
Topic Author
Posts: 3
Joined: Wed Oct 02, 2013 8:45 pm

Re: Using backup from one router in another?

Fri Oct 04, 2013 9:21 am

Hi

Thanks for the replies. It did not seem to have worked properly. I am using hotspot package and there must be an issue with it since,
the router let the user connect directly to internet. I do not have access to the other router so I am able to only tell things which my has tried after
I send him my settings.

I am not sure what is not working in the setttings.
 
Rudios
Forum Veteran
Forum Veteran
Posts: 977
Joined: Mon Mar 11, 2013 12:58 pm
Location: The Netherlands

Re: Using backup from one router in another?

Fri Oct 04, 2013 9:39 am

The way I test my scripts is as follows.

First build a config file with all the desired settings.
Upload this file into a RouterBoard and reset the routerboard without default config.
Then connect to it via winbox (mac) and try to import the config file.
It will give you an error when someting went wrong.
If nothing went wrong and the config is loaded sucessfully, you know your config file is ok.
If you know your config is ok, you can do one additional test and let the router import the config after a reset.
This can be done by the command

ros code

/system reset-configuration no-defaults=yes run-after-reset=<filename>
 
User avatar
nawshad
Trainer
Trainer
Posts: 104
Joined: Wed Jul 23, 2008 2:19 pm
Location: Dhaka Bangladesh
Contact:

Re: Using backup from one router in another?

Fri Oct 04, 2013 9:55 am

The way I test my scripts is as follows.

First build a config file with all the desired settings.
Upload this file into a RouterBoard and reset the routerboard without default config.
Then connect to it via winbox (mac) and try to import the config file.
It will give you an error when someting went wrong.
If nothing went wrong and the config is loaded sucessfully, you know your config file is ok.
If you know your config is ok, you can do one additional test and let the router import the config after a reset.
This can be done by the command

ros code

/system reset-configuration no-defaults=yes run-after-reset=<filename>
before you implement backup script to new router, make sure both router's OS version is same.
 
servaris
Frequent Visitor
Frequent Visitor
Posts: 67
Joined: Tue May 20, 2014 4:30 pm
Location: Planet Earth
Contact:

Re: Using backup from one router in another?

Wed Oct 08, 2014 2:16 am

Hi,
Can a /export compact from a 6.15 rb2011uias be transfered into a brand new rb1100ahx2? If it can, should the ahx2 have configuration reset first using the following command?
/system> reset-configuration no-defaults=yes


Thanks.
 
jarda
Forum Guru
Forum Guru
Posts: 7756
Joined: Mon Oct 22, 2012 4:46 pm

Re: Using backup from one router in another?

Wed Oct 08, 2014 8:50 am

Do it manually block by block and think about it. The ports are organised differently and other things you may want to do differently.
Always remove the configuration before.

Who is online

Users browsing this forum: rhget and 39 guests