Page 1 of 1

Using backup from one router in another?

Posted: Thu Oct 03, 2013 8:32 am
by tavish1
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!

Re: Using backup from one router in another?

Posted: Thu Oct 03, 2013 11:06 am
by nawshad
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

Re: Using backup from one router in another?

Posted: Thu Oct 03, 2013 2:02 pm
by pcunite
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.

Re: Using backup from one router in another?

Posted: Thu Oct 03, 2013 4:07 pm
by Rudios
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

Re: Using backup from one router in another?

Posted: Thu Oct 03, 2013 9:20 pm
by nawshad
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.

Re: Using backup from one router in another?

Posted: Fri Oct 04, 2013 9:21 am
by tavish1
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.

Re: Using backup from one router in another?

Posted: Fri Oct 04, 2013 9:39 am
by Rudios
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>

Re: Using backup from one router in another?

Posted: Fri Oct 04, 2013 9:55 am
by nawshad
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.

Re: Using backup from one router in another?

Posted: Wed Oct 08, 2014 2:16 am
by servaris
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.

Re: Using backup from one router in another?

Posted: Wed Oct 08, 2014 8:50 am
by jarda
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.