Rsync not updating

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--.rpms_db/ rpms_db/httpd-2.4.6-88.el7.centos.x86_64rpms_db/httpd-tools-2.4.6-88.el7.centos.x86_64rpms_db/postfix-2.10.1-7.el7.x86_64rpms_db/pytalloc-2.1.13-1.el7.x86_64rpms_db/samba-4.8.3-4.el7.x86_64rpms_db/samba-client-libs-4.8.3-4.el7.x86_64rpms_db/samba-common-4.8.3-4.el7.rpms_db/samba-common-libs-4.8.3-4.el7.x86_64rpms_db/samba-common-tools-4.8.3-4.el7.x86_64rpms_db/samba-libs-4.8.3-4.el7.x86_64sent 484 bytes received 15.45M bytes 1.07M bytes/sec total size is 16.37M speedup is 1.06

1 root root 2558136 Nov 12 postfix-2.10.1-7.el7.x86_64-rw-r--r--.

Let’s assume we want to copy or sync pkumar user’s home directory to /opt/backup folder, execute the below rsync command with options -zavh, sending incremental file list pkumar/ pkumar/.bash_logout pkumar/.bash_profile pkumar/.bashrc pkumar/Open sent 4.09M bytes received 96 bytes 8.19M bytes/sec total size is 6.15M speedup is 1.50 [[email protected] ~]#[[email protected] ~]# ls -ld /opt/backup/* -rwx------.

1 root root 6153239 Apr 7 /opt/backup/Open drwx------.

Let’s assume we have multiple files and directories inside pkumar user home directory, use below rsync command to copy files and directories recursively, either use -a or -r option to copy files and directories recursively.

Note : In rsync command -a option is used for archiving during the copy or sync and apart from archiving -a option is also used for followings: [email protected]'s password: …………………………………………………………

Leave a Reply