Read Flash Contents: read_flash
The read_flash command allows reading back the contents of flash. The arguments to the command are an address, a size, and a filename to dump the output to. For example, to read a full 2MB of attached flash:
./esptool.py -p PORT -b 460800 read_flash 0 0x200000 flash_contents.bin