Useful to copy directories from one server to another:
cd into the dir you want to have your data
scp -prq username@127.0.0.1:/var/www/comefromdir/ .
OR
Copy a local file to your remote server
cd into/containing/directory
scp file.txt user@123.456.789.000:
This copies the file in the user home directory on his server with IP 123.456.789.000
- Tags
- bash