Monday , October 26 2020
Home / Linux / Copy data by rsync from one server to another server in linux

Copy data by rsync from one server to another server in linux

Basic syntax of rsync command

$ rsync options source destination

$ rsync -avzh /root/rpmpkgs /tmp/backups/

$ rsync -avz rpmpkgs/ root@192.168.0.101:/home/

Copy a File from a Remote Server to a Local Server with SSH

$ rsync -avzhe ssh root@192.168.0.100:/root/install.log /tmp/

Copy a File from a Local Server to a Remote Server with SSH

$ rsync -avzhe ssh backup.tar root@192.168.0.100:/backups/

Copy a File from a Remote Server to a Local Server with pem file SSH

$ rsync -avzh -e “ssh -i amazon_server.pem” root@192.168.0.100:/var/www/html /var/www/vhosts/example.com/

About v.shakya

I am V.Shakya, Freelance PHP Programmer. I like to share my ideas, views and knowledge to all of you who come across my website. I am young, enthusiastic, highly motivated and self disciplined person. I completed my studies in Master of Computer Application and currently giving my technical expertise to one of the Big IT company. I have more than Ten years of experience in vast field of Programming , Designing and Development of websites and various software's.

Check Also

Installing the latest MySQL 5.6 on Amazon Linux using official repos

Installing the latest MySQL 5.6 on Amazon Linux using official repos Below are the process/steps …

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.