Transfer files from or to linux and unix server

SCP

scp command will copy and replace everything from source to destination.

Copy files recursively from local to server:

scp -rp ~/Downloads user@server.com:/path

Copy files recursively from server to local:

scp -rp user@server.com:/path ~/Downloads

 

 

RSYNC

rsync will copy and check and compare files before copying files from source to destination.

Copy files recursively from local to server:

rsync -av ~/Downloads user@server.com:/path

Copy files recursively from server to local:

rsync -av user@server.com:/path​ ~/Downloads 

 

Add new comment

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.