1) To copy the files from remote server to local machine
>> scp user@from-host:source-file local-destination-folder
>> scp user@from-host:source-file local-destination-folder
from-host :-> Hostname from where we want to copy the files
source-file :-> File that we want to copy
local-destination-folder :-> Local folder where we want to copy the files
2) To copy files from local server to remote server
>> scp source-file user@to-host:remote-destination-folder
source-file :-> File that we want to copy
to-host :-> Hostname where we want to copy the files
remote-destination-folder :-> Exact folder on remote machine where you want to copy the files
3) To copy the folder.
>> scp -r
-r :-> This Parameter is to copy the folder.
No comments:
Post a Comment