What is Rsync over SSH? Command for Rsync over SSH?

The Rsync – Remote Sync is a powerful command-line tool in Linux. Normally rsync is used to transfer file from one server(source) to another server(destination). We already discussed the basics of Rsync command and its switches. Please read this for more info >> Rsync command in Linux and its switches << Rsync will actually look and see what in the file has changed and upload only the part of the file that has changed. Unlike ftp and other transfer solutions rsync doesn’t simply re-upload the entire file.

Here I’m explaining the command to Rsync over SSH.


# rsync -avz -e ssh Source Destination 

If the destination server has a different SSH port, you need to know this command to connect and Rsync files from that server.

Rsync command with destination port

# rsync -avz -e 'ssh -p port' Source Destination 


# rsync -avz -e 'ssh -p 2222' Source Destination 

-v : verbose
-a : archive
-z : to enable compression

Advantages of Rsync

1, Secure
2, Faster
3, Sutable for recurring tasks


1, 20+ Rsync command switches
2, Tar command with example
3, LSOF command details

Post navigation

Arunlal Ashok

Operations Engineer at Endurance International Group. Linux lover. Like to play on Linux console. I started this blog to share and discuss Linux thoughts.

Always happy for an open discussion! Write to arun (@) crybit (dot) com. Check about me for more details. About this blog and our strong members, check The team CryBit.com
We like to travel. Our travelogues are published at Trip Mentor

2 thoughts on “What is Rsync over SSH? Command for Rsync over SSH?

Leave a Reply

Your email address will not be published. Required fields are marked *