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...
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...
how man rsync see options
code: select all
sudo rsync -avx /pi/programs/ /pi/raspi_sav/
raspberrypi
Comments
Post a Comment