Rsync
- cd into the target directory
- do an rsync dry run and check everything is ok
rsync -avzn <inset path here>/public/media/catalog/* .
- exclude the cache directory
rsync -avzn <inset path here>/public/media/catalog/* . --exclude=cache
- remove the
-n
flag and run the command to copy the images
rsync -avz <inset path here>/public/media/catalog/* . --exclude=cache
- you can check the full command explanation at
https://explainshell.com/explain?cmd=rsync+-avzn+%2Ftmp%2Ftest+%2Ftmp%2Ftest2+--exclude%3Dcache