B2G-flash-tool
B2G-flash-tool copied to clipboard
Powershell script to backup and restore Firefox OS
It is just a simple Powershell script to backup and restore Firefox OS. It is in a early stage, but it works.
As an user, I have to install setup adb in my environment variables in order to run this script; otherwise it won't run adb.
@CodingFree we write a new backup/restore tool by Python (#313), could you please help us to check if it works fine on Windows? Thank you.
maybe related: https://github.com/Mozilla-TWQA/B2G-flash-tool/issues/339
To avoid confusion, you should re-name it to backup_restore_profile.ps1
and it would be nice if it also can backup the memory card (Nexus 4 has build in memory)
.\backup_restore_profile.ps1 backup sdcard
.\backup_restore_profile.ps1 restore sdcard
backup:
adb pull /sdcard $PROFILE_HOME\sdcard
restore:
adb push $PROFILE_HOME\sdcard /sdcard
Hi, that would be easy to do. But afaik, the script was not accepted at all.
oh, that's sad. But thanks anyway! :smile:
@SunboX Hi André, I have added an option to backup the sdcard. But not to restore it, yet. I think that it would be too dangerous to restore the sdcard since it would have to "erase" the sdcard before restoring the content.
And erasing a scard is not a good idea :8ball: