Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
JabLuszko opened this issue Jun 8, 2020 · 4 comments
Open

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

JabLuszko opened this issue Jun 8, 2020 · 4 comments

Comments

@JabLuszko
Copy link
Contributor

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

@krzee
Copy link
Collaborator

krzee commented Jun 8, 2020

  • 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.

@JabLuszko
Copy link
Contributor Author

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.

@krzee
Copy link
Collaborator

krzee commented Jun 8, 2020

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
Copy link
Collaborator

krzee commented Jun 8, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants