Copy files between Linux Systems using scp

1. Copy file from a remote server to local server: copy directory pathogenbase from remote server /srv/www/ directory to current working directory

scp -r user_name@remote_ip:/srv/www/pathogenbase/ .
2. Copy file_name from local server to remote server: copy file_name from /srv/www on local server to remote server /srv/www/
scp /srv/www/file_name user_name@remote_ip:/srv/www/
3. If you are copying files between windows and Linux you could use winSCP.

No comments:

Post a Comment

Datatable static image not found on the server

When you use ```datatables.min.css``` and ```datatables.min.js``` locally, instead of datatables CDN, you may have encountered that ```sort...