Ansuel / tch-nginx-gui

Modified file to apply to a stock technicolor GUI
GNU General Public License v3.0
344 stars 52 forks source link

Backup and Restore to another device behaves weirdly #1108

Closed SushiTee closed 2 years ago

SushiTee commented 3 years ago

Device 1: Device Model/Firmware: DGA4132/AGTHP_2.2.1 GUI Version: 9.6.84 active bank: 1 booted bank: 2 Device 2: Device Model/Firmware: DGA4132/AGTHP_2.1.0 GUI Version: 9.6.79 active bank: 1 booted bank: 2

Brief description

I dumped mtd2 (rootfs_data) and mtd4 (bank_2) of Device 1 and restored it on Device 2. What I would expect is to have two identical configurations. All settings seem to work but the GUI of Device 2 still shows the old version of the GUI and the old Firmware. After reinstalling the GUI manually (like shown in the Readme here) the correct Version is shown

What did I miss to make a exact copy of one device to another?

Steps to reproduce in detail

After the reboot the old GUI version (9.6.79) as well as the old firmware version (2.1.0) was shown in the GUI. All settings seem to be correct though.

I downloaded version 9.6.84 of the GUI manually put it into the /tmp direcrtory and run the following:

bzcat /tmp/GUI_dev.tar.bz2 | tar -C / -xvf -
/etc/init.d/rootdevice force

After that the correct firmware version was shown. The only difference I could still spot is within the LuCI GUI:

On a site note: Device 2 doesn't have internet during the procedure.

Question

What did I miss when performing the backup and restore onto another device? Is there anything else I need to dump or copy?

FrancYescO commented 3 years ago

first update GUI and firmware to the same version. than use the advanced baclup and restore function in modgui modal

SushiTee commented 3 years ago

This is no option for me. I got two devices so that I don't have to do the update in a live system.

When ever there is a new firmware I want to update it on one device and copy the whole stuff ot the other.

Well if it is what it is and there is no solution for this I'll simply live with it or I'll just configure both devices from the scratch each time I need an update.

FrancYescO commented 2 years ago

the fastest way is what i wrote up, the best is configuring from scratch, coping a full overlay (and in general restoring) to another device can also cause some strange things to happen like duplicating serials or MACs