copy directory scp code example
Example 1: scp folder from server to local
scp -r [email protected]:/path/to/foo /home/user/Desktop/
Example 2: scp all files in directory
scp -r myfoldername [email protected]:/home/myfoldername
scp -r [email protected]:/path/to/foo /home/user/Desktop/
scp -r myfoldername [email protected]:/home/myfoldername