MAD-ATV icon indicating copy to clipboard operation
MAD-ATV copied to clipboard

A way (job?) to backup device settings for simple restore.

Open JabLuszko opened this issue 4 years ago • 4 comments

This is just a reminder and #todo list, we brainstorming at this point. The main idea is to run script (MAD job?) that would backup all important files and that we can restore them on other device with one command. Cloning, I would say?

Backup: pogodroid settings xml rgc settings xml macaddress (no matter if forced to random due to a95x or using defaul) wpa-suplicat wifi data gmail addy

Do we change anything else that MAD-ROM can't do automagically (except Magisk....)?

Maybe like create a zip file that we can download? Or even upload it to straight to MAD and then restore via

once both are there we could expose it via PD endpoint with the origin hopper

JabLuszko avatar Jun 08 '20 20:06 JabLuszko

  • mac address will only be backed up if mad rom is enforcing it. default is not to unless its necessary (theres a single mac address that all a95xf1 ethernet adapters use). If a mac address file is present for any reason (user intervention or 16mad doing what was necessary) we should back it up. If we are not enforcing it theres no file and we dont need to grab it from ifconfig to back it up. it'll always just be the same. If this is more about knowing which deviceID it is for backend administration, then note that not all boxes necessarily use mac for that, and pogodroid config will have whats being sent to the backend.

  • hopefully we wont need to backup gmail info after all. I am pushing for the gmail password to be included in madmin per device, it already has a slot for google address. banana is adding an origin hopper via PD endpoint for me and im asking him for it to include the google account data as well as the origin.

krzee avatar Jun 08 '20 20:06 krzee

I would like to force (extra flag?) mac address too - so if I want to upgrade my S905W to blazing fast S912... I can still do it, not needing to touch my scripts, network, router settings, static IPs or anything.

JabLuszko avatar Jun 08 '20 20:06 JabLuszko

Do we change anything else that MAD-ROM can't do automagically (except Magisk....)?

good question! i should assume that any /sdcard/pingreboot or /sdcard/disableauto* files represent how the user wants their boxes to be autoconfigured

krzee avatar Jun 08 '20 20:06 krzee

I would like to force (extra flag?) mac address too - so if I want to upgrade my S905W to blazing fast S912... I can still do it, not needing to touch my scripts, network, router settings, static IPs or anything.

interesting idea, i guess i could back it up as autoconfig_path/madfiles/madmac.$origin and then when autoconfiguring if origin matches use that madmac file

krzee avatar Jun 08 '20 20:06 krzee