how to copy 1 complete folder (recursively) int another one? - Raspberry Pi Forums


how copy 1 complete folder (recursively) int one?

given have 1 folder
/pi/programs/
, 1 folder
/pi/raspi_sav/

want copy entire programs folder raspi_sav folder either if it's altready existing yet or not (overwrite everything)

tried
supo cp -r /pi/programs /pi/raspi_sav
supo cp -r /pi/programs/ /pi/raspi_sav
supo cp -r /pi/programs/ /pi/raspi_sav/
supo cp -r /pi/programs/* /pi/raspi_sav/

nothing worked... :evil:

how

code: select all

sudo rsync -avx /pi/programs/ /pi/raspi_sav/ 
man rsync see options ;)


raspberrypi



Comments

Popular posts from this blog

invalid use of void expresion in FlexiTimer2 library

error: a function-definition is not allowed here before '{' token

LED Strip Code