← index #17267Issue #16829
Related · high · value 2.145
QUERY · ISSUE

mpremote gives false error if a destination directory doesn't exist for recursive copy

openby mattvennopened 2025-05-08updated 2025-09-05
bugtools

Port, board and/or hardware

rp2040

MicroPython version

MicroPython v1.24.0 on 2024-10-25; Raspberry Pi Pico with RP2040

Reproduction

create a directory 'test' on the target and 'local' on host
then run:

mpremote cp -r local  :testt 

note typo in destination

Expected behaviour

the error message should be 'destination doesn't exist'

Observed behaviour

cp local :testt
mpremote: cp: -r not specified; omitting directory

Additional Information

No, I've provided everything above.

Code of Conduct

Yes, I agree

CANDIDATE · 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

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