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 commands1. -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 ServerQuote#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 !!!