News:

SMF - Just Installed!

Main Menu

How to Install rsync ?

Started by Dipak Bhoi, April 02, 2014, 07:05:21 PM

Previous topic - Next topic

Dipak Bhoi

Hello guys,

In this post I cover the topics how to install rsync and its some helpful examples.

rsync command is used to transfer your files remotely and locally in Linux. Rsync consumes less bandwidth as it uses compression and decompression method while sending and receiving data both ends.

You can install rsync package using following command.

Quote#yum install rsync

Syntax of rsync : -

Quote#rsync options source destination

Commonly used option with rsync commands

1. -v : verbose
2. -a : archive mode, archive mode allows copying files recursively and it also preserves symbolic links, file permissions, user & group ownerships and timestamps

rsync on local server : -

Quote#rsync -va mysql.sql /tmp/backups/

rsync from Local Server to a Remote Server

Quote#rsync -av backup/ root@192.168.1.8:/home/

rsync from  Remote server to a Local server Run following command on Local server.

Quote#rsync -av root@192.168.1.8:/home/dipak/myfiles /tmp/localfiles/

Hope this post help you.

Enjoy !!!
MilesWeb - 30-Day Money Back
cPanel Web Hosting - cPanel Hosting in India
Grab a Free SSL for your website.  WordPress Optimized Solution.