AsteroidOS / asteroidos.org

AsteroidOS official website. Built using Assemble, Grunt, Bootstrap and Less.
Other
23 stars 37 forks source link

[information request] how to backup userdata and boot partitions? #17

Closed violoncelloCH closed 1 year ago

violoncelloCH commented 6 years ago

I would be very nice if you could provide information on how to backup userdata and boot partitions and maybe even how to restore them. What's the best way to do this? this would really help newcomers...

violoncelloCH commented 6 years ago

or at least a guide to find and reflash the original os

FlorentRevest commented 6 years ago

I'm not entirely sure whether we can document how to reinstall WearOS (both technically and legally). That being said, we could add a documentation page for "backups" with one subsection for backups of WearOS and one subsection for backups of AsteroidOS. I would recommend the usage of TWRP (when available) with links to official downloads https://twrp.me/Devices/ We could then point to that documentation page from the install pages.

violoncelloCH commented 6 years ago

Ohh, havn't known the legal issue Is it possible to backup the boot and userdata partition of Wear OS with twrp? If so I will try this and I could prepare a documentation page with at least some indications...

FlorentRevest commented 6 years ago

It is possible indeed. That would be super cool if you could send a PR! Keep me updated.

violoncelloCH commented 6 years ago

of course I could sand a PR! But twrp shows /system as 0MB and then fails to back up because it is unable to mount /system. any ideas or tricks?

FlorentRevest commented 6 years ago

Cool! Does this happen with wearOS or AsteroidOS? Because Asteroid doesn't use the /system partition at all. (but it shouldn't be empty, it should be wearOS's partition left untouched)

violoncelloCH commented 6 years ago

It's with wearOS. Thought I'will have to back it up too... Maybe it's something with Androids encryption? But if AsteroidOS lets /system untouched, it should be sufficient to back up /boot and /data...?

beroset commented 1 year ago

I'd like to propose an addition to our pages that may partially resolve this. It's possible to get a dump of all partitions using a temporary AsteroidOS installation, and possible to restore as well, so one reasonable thing we could do would be to describe how to do this with these steps:

  1. do a temporary install of AsteroidOS
  2. make a backup of all partitions
  3. do a permanent install of AsteroidOS

With those accomplished, it's possible to restore to more or less the original state using this:

  1. restore the boot partition
  2. reboot to original OS
  3. do a "reset" within that OS which should restore/wipe the userdata partition
  4. use ADB to delete the temporary install of AsteroidOS
beroset commented 1 year ago

I've created some tools that help with this: https://github.com/beroset/asteroid-hosttools

eLtMosen commented 1 year ago

I've created some tools that help with this: https://github.com/beroset/asteroid-hosttools

Great work indeed. Tested the tools on catfish and found no issues. Happy to test specific tasks.

es-ka commented 1 year ago

Thanks for the useful hint! Just tested the watch-image tool to backup a sparrow device. Works fine for me: 3909091328 bytes (3,9 GB, 3,6 GiB) copied, 598,255 s, 6,5 MB/s

Maybe a link to the hosttools could be added to the install page: https://github.com/AsteroidOS/asteroidos.org/blob/master/templates/layouts/aw-install.hbs#L92

beroset commented 1 year ago

This is now fixed by this commit https://github.com/AsteroidOS/asteroidos.org/pull/298