Rsync not updating

So in this situation rsync command can used as it can start copying the file from where it left off or terminated, or in other words rsync can transfer the files which are partially copied using scp command.

Example is shown below, If you have already synced files from source to destination and from source you have deleted the files then you can force rsync command to delete the files on destination using the –delete option, example is shown below [email protected]'s password: sending incremental file list deleting rpms_db/apr-util-1.5.2-6.el7.x86_64deleting rpms_db/apr-1.4.8-3.el7_4.1.x86_64rpms_db/ sent 862 bytes received 105 bytes 276.29 bytes/sec total size is 15,947,152 speedup is 16,491.37

In the above example if use trail / after source folder (/home/pkumar/) then rsync command will not create pkumar directory on destination but it will copy the contents only.

1 root root 282332 Nov 12 samba-libs-4.8.3-4.el7.x86_64……………………………………

[[email protected] ~]#In rsync command we can specify the remote shell like ssh during synchronization, let’s assume we want to use secure communication between source to destination machine via rsync then we should use ssh as remote shell, example is shown below [email protected]'s password: receiving incremental file list ………………………………………………………………………………

1 root root 167512 Nov 12 samba-common-libs-4.8.3-4.el7.x86_64-rw-r--r--.

1 root root 458380 Nov 12 samba-common-tools-4.8.3-4.el7.x86_64-rw-r--r--.

Leave a Reply