rsync is used to perform the backup operation in UNIX / Linux. rsync utility is used to synchronize the files and directories from one location to another in an effective way.
Example : Synchronize Files From Local to Remote using shell(ssh with port)
rsync -avzi -e "ssh -p 2445" /var/lib/ldap/ username@192.168.32.101:/var/lib/ldap/
Example : Synchronize Files From Remote to Local
rsync -avz username@192.168.200.10:/var/lib/rpm /root/temp
Read More : Click here
Example : Synchronize Files From Local to Remote using shell(ssh with port)
rsync -avzi -e "ssh -p 2445" /var/lib/ldap/ username@192.168.32.101:/var/lib/ldap/
Example : Synchronize Files From Remote to Local
rsync -avz username@192.168.200.10:/var/lib/rpm /root/temp
Read More : Click here