scp all files in folder code example
Example 1: scp all files in directory
scp -r myfoldername [email protected]:/home/myfoldername
Example 2: scp copy all files ion folder
$ scp -r ~/local_dir [email protected]:/var/www/html/target_dir
Example 3: scp all files in currrent directory
scp -r "${PWD}" ${remote}:${dst_path}