← index #16829PR #9091
Related · medium · value 1.034
QUERY · ISSUE

docs: Please provide examples to show how to backup and restore the complete contents of flash.

openby adrianblakeyopened 2025-02-27updated 2025-03-04
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'

mergedby dpgeorgeopened 2022-08-24updated 2022-08-26
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.

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied