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