B2G-flash-tool icon indicating copy to clipboard operation
B2G-flash-tool copied to clipboard

Powershell script to backup and restore Firefox OS

Open CodingFree opened this issue 9 years ago • 7 comments

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 avatar Nov 08 '14 23:11 CodingFree

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

askeing avatar Nov 13 '14 10:11 askeing

maybe related: https://github.com/Mozilla-TWQA/B2G-flash-tool/issues/339

SunboX avatar May 04 '15 15:05 SunboX

To avoid confusion, you should re-name it to backup_restore_profile.ps1

SunboX avatar May 04 '15 15:05 SunboX

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

SunboX avatar May 04 '15 15:05 SunboX

Hi, that would be easy to do. But afaik, the script was not accepted at all.

CodingFree avatar May 04 '15 15:05 CodingFree

oh, that's sad. But thanks anyway! :smile:

SunboX avatar May 04 '15 15:05 SunboX

@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:

CodingFree avatar May 11 '15 23:05 CodingFree