nodemcu-pyflasher icon indicating copy to clipboard operation
nodemcu-pyflasher copied to clipboard

Add backup option

Open rt400 opened this issue 5 years ago • 5 comments

hi.. there is a way to add a backup option ?

rt400 avatar Aug 22 '19 12:08 rt400

According to these instructions esptool has a read_flash instruction that could be used for a backup option

# back up 1MB image
esptool.py --port COM5 read_flash 0x00000 0x100000 image1M.bin
# back up 4MB image
esptool.py --port COM5 read_flash 0x00000 0x400000 image4M.bin

so it should be possible, in main.py to add a second click button called backup First and get this to run one or both of the commands above. You might presume the location to save to from the location of the firmware file chosen with the Browse button.

artmg avatar Oct 05 '19 13:10 artmg

This was designed as a single-purpuse app (kind of) - simplicity is key. There has to be a lot of convincing demand from the community until I consider adding more options and features. I'll keep this open for now, though.

marcelstoer avatar Oct 06 '19 02:10 marcelstoer

Hi all. Yes, this will be a great feature for this tool. It is a question of security first. Backup the actual firmware before flashing a new one seems to be a necessary option.

kerozen54 avatar Oct 31 '19 09:10 kerozen54

Yes please, backup would be a safer way forward in case of issues with an unproven device.

IanAdd avatar May 07 '20 11:05 IanAdd

Note to self: if we'll add this then it has to be done in a way that does not clutter the GUI even more; at most a simple "Backup yes/no" switch like with the erase flash option. Backup destination will be the OS/profile temp dir.

marcelstoer avatar Oct 22 '21 22:10 marcelstoer