# - bof - # # - - # # - Documentation - # https://devhints.io/rsync https://www.tecmint.com/rsync-local-remote-file-synchronization-commands/ :A # - - # # - rsync files inside Programs folder into Programs folder - # rsync -avhP /mnt/Data1/ISOsDataSet/Images/Programs/ /mnt/Data1/Images/Programs/ :B # - - # # - rsync folder Recovery into folder Images - # rsync -avhP /mnt/Data1/ISOsDataSet/Images/Recovery /mnt/Data1/Images/ rsync -avhP /mnt/Data1/ISOsDataSet/Images/LearningEnglish /mnt/Data1/Images/ :C # - - # # - With ssh - # :C.1 # - - # # - If SSH on remote server is listening on different port <> 22 - # # - specify the port using the -e option - # rsync -avhP -e "ssh -p 2322" /opt/media/ remote_user@remote_host_or_ip:/opt/media/ :C.2 # - - # # - Copy files to a remote server - # rsync -avhz rpmpkgs/ root@192.168.0.101:/home/ :C.3 # - - # # - Copy files from a remote server - # # - To specify protocol with rsync you need to give “-e” - # # - option with protocol name you want to use - # # - Example: We will be using “ssh” with “-e” option and perform data transfer - # [root@tecmint]# rsync -avzhe ssh root@192.168.0.100:/root/install.log /tmp/ :C.4 # - - # # - Copy file from local server to remote server - # [root@tecmint]# rsync -avzhe ssh backup.tar root@192.168.0.100:/backups/ rsync -avzhe ssh root@192.168.0.100:/root/install.log /tmp/ uSH cd /home/Data3/Images/Programs/Linux.Img/ rsync -avzhe ssh --progress Linux_AlmaLinux.Img sshd@192.168.1.54:/mnt/HD/HD_a2/Public/Images/Programs/Linux.Img/ rsync -avhe ssh --progress Linux_ArchGui.Img is_derayo@192.168.1.114:/mnt/Data1/Images/Programs/Linux.Img/ rsync -avzhe --progress /media/is_derayo/Data2/Documents/ /home/Data2/Documents/ rsync -avzhe --progress /media/is_derayo/Data2/Images /home/Data2/ rsync -avzhe -P /media/is_derayo/Data2/Images /home/Data2/ rsync -avh --info=progress2 /media/is_derayo/Data2/Images /home/Data2/ is_derayo@192.168.0.100:/home/is_derayo/uServerHome/home/Data3/Images/Programs/Linux.Img/Linux_AlmaLinux.Img/ sshd@192.168.1.54:/mnt/HD/HD_a2/Public/Images/Programs/Linux.Img/Linux_AlmaLinux.Img/ # - eof - #