scp

Upload directory recursively from local host to remote host

scp -rp <source-directory> user@dest:/remote-path

This creates the source-directory inside /remote-path thus the files will be in /remote-path/source-directory/ -r means recursive (lower case) -p preserves modification times, access times, and modes from the original file.

local copy with recursive option ‘-R’ (upper case)

cp -R <source-directory> <destination-directory>