[root@kvm5 ~]# touch /home/deyu1/cron.daily/abc
[root@kvm5 ~]# ll /home/deyu1/cron.daily/ total 7 -rwxr-xr-x. 1 root root 332 Mar 10 2015 0yum-daily.cron -rw-r--r--. 1 root root 0 Oct 11 16:27 abc -rwx------. 1 root root 191 Oct 11 16:15 logrotate -rwxr-xr-x. 1 root root 618 Mar 18 2014 man-db.cron [root@kvm5 ~]# rsync -auvh /etc/cron.daily /home/deyu1/ sending incremental file list cron.daily/ sent 124 bytes received 16 bytes 280.00 bytes/sec total size is 1.13K speedup is 8.07
[root@kvm5 ~]# rsync -auvh --delete-excluded /etc/cron.daily /home/deyu1/ sending incremental file list deleting cron.daily/abc sent 121 bytes received 13 bytes 268.00 bytes/sec total size is 1.13K speedup is 8.43
[root@kvm5 ~]# ll /home/deyu1/cron.daily/ total 6 -rwxr-xr-x. 1 root root 332 Mar 10 2015 0yum-daily.cron -rwx------. 1 root root 191 Oct 11 16:15 logrotate -rwxr-xr-x. 1 root root 618 Mar 18 2014 man-db.cron