easyddup a simple upgrade/downgrade utility

Post new topic   Reply to topic    DD-WRT Forum Index -> Contributions Upload
Goto page Previous  1, 2, 3 ... 21, 22, 23
Author Message
blaser
DD-WRT Guru


Joined: 16 Jul 2006
Posts: 536

PostPosted: Fri Jul 04, 2025 12:55    Post subject: Reply with quote
I think I know what the problem is:
when you have a clean router, no configuration, when you run nvram show some items like static_leases , rc_firewall etc will not show.
I believe when you are restoring the configuration, you check it is exists in the nvram show, if not you do not restore, am I correct?

_________________
Linksys MX4300 main router
Sponsor
yoyoma2
DD-WRT User


Joined: 24 Sep 2016
Posts: 401

PostPosted: Fri Jul 04, 2025 17:13    Post subject: Reply with quote
Thanks for diagnosing. You must have saved the backup in migration mode. It's possible to edit the already generated restore script and change line 18:
Code:
op="-clean"
to
Code:
op=$1
and it shouldn't use clean mode (migration mode automatically turns on clean restore).

You could also rerun nvram-save.sh without -m if the original router is still available.

The nvram save/restore scripts were copied/tweaked (mentioned in the OP) for easyddup to create restore points and also save basic settings. I only wrote easyddup and checknewversion, not nvram save/restore.

PS.
I probably should add a big warning if -m is used on nvram-save as it breaks some dd-wrt features when restored as discussed on page 9 of this thread.
blaser
DD-WRT Guru


Joined: 16 Jul 2006
Posts: 536

PostPosted: Fri Jul 04, 2025 22:39    Post subject: Reply with quote
yoyoma2 wrote:
Thanks for diagnosing. You must have saved the backup in migration mode. It's possible to edit the already generated restore script and change line 18:
Code:
op="-clean"
to
Code:
op=$1
and it shouldn't use clean mode (migration mode automatically turns on clean restore).

You could also rerun nvram-save.sh without -m if the original router is still available.

The nvram save/restore scripts were copied/tweaked (mentioned in the OP) for easyddup to create restore points and also save basic settings. I only wrote easyddup and checknewversion, not nvram save/restore.

PS.
I probably should add a big warning if -m is used on nvram-save as it breaks some dd-wrt features when restored as discussed on page 9 of this thread.


makes sense, I will try in soon and update.
Also running nvram-restore-latest.sh without any input parameter?

_________________
Linksys MX4300 main router
blaser
DD-WRT Guru


Joined: 16 Jul 2006
Posts: 536

PostPosted: Sat Jul 05, 2025 16:06    Post subject: Reply with quote
This worked now, although some other parameters didn't transfer like, DDNS and all wifi configurations etc.
When I'll have more time I will dig inside and see what do I need to change in order to customize my setup.

Thanks you for your help.

_________________
Linksys MX4300 main router
yoyoma2
DD-WRT User


Joined: 24 Sep 2016
Posts: 401

PostPosted: Sat Jul 05, 2025 17:46    Post subject: Reply with quote
Glad it's running. It's likely some variables in nvram-dd-wrt.ini.sample need to be added/modified if some settings are not being saved/restored. If we make useful changes I'll include them in the next release. People could save so much time getting their settings back after a reset or with a new router if nvram-dd-wrt.ini files were augmented and shared.
Goto page Previous  1, 2, 3 ... 21, 22, 23 Display posts from previous:    Page 23 of 23
Post new topic   Reply to topic    DD-WRT Forum Index -> Contributions Upload All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum