QUERY · ISSUE
docs: Please provide examples to show how to backup and restore the complete contents of flash.
docstools
Documentation URL
No response
Description
The title says it:
I have tried (and with help from warp) to get the syntax correct to recursively backup the flash contents to my computer. Among several things we arrived at:
mkdir ./pico_backup
mpremote fs cp -r :/ ./pico_backup
mpremote: 'cp -r' destination must be ‘:’
Being able to save and restore the complete contents of flash is (I would have thought) a very common task. Therefore please could we have these as examples in the docs?
Code of Conduct
Yes, I agree
CANDIDATE · PULL REQUEST
mpremote: support 'cp :a :b'
tools
The 'cp' command now supports device-to-device file copy. As part of this the cp command no longer adds any implicit ':' to its arguments.
See related #7602.