Rsync Copy Files & Folder through SSH

  • Install Rsync in Both Server

[root@testsvr01 ~]# yum install -y rsync

[root@testsvr02 ~]# yum install -y rsync

  • Run below command for Sync files and Folder

[root@testsvr01 ~]# rsync -v -r -e ssh --progress /opt/soruce_dir/* root@testsvr02:/opt/dest_dir/