sorry, forgot to cc to mailing list > I can't reproduce this -- rsync always reports the files that would > be deleted. If you're still seeing a problem, please provide a more > detailed test case.
yes, it works fine under normal circumstances. I see strange behaviour in presence of symlink. Below is script of root session on NetBSD machine: [EMAIL PROTECTED] (ttyp7) 2:46:07 /tmp/etc 0# pwd /tmp/etc [EMAIL PROTECTED] (ttyp7) 2:46:20 /tmp/etc 0# ls -la total 8 drwxr-xr-x 4 dina wheel 512 Apr 9 23:35 . drwxrwxrwt 24 root wheel 1024 Apr 24 02:33 .. drwxr-xr-x 13 dina wheel 512 Apr 9 23:37 X11 drwxr-xr-x 2 dina wheel 512 Apr 9 23:35 fonts [EMAIL PROTECTED] (ttyp7) 2:46:23 /tmp/etc 0# ls -la X11 total 26 drwxr-xr-x 13 dina wheel 512 Apr 9 23:37 . drwxr-xr-x 4 dina wheel 512 Apr 9 23:35 .. drwxr-xr-x 2 dina wheel 1024 Apr 9 23:37 app-defaults drwxr-xr-x 2 dina wheel 512 Apr 9 23:35 fs drwxr-xr-x 2 dina wheel 512 Apr 9 23:37 lbxproxy drwxr-xr-x 2 dina wheel 512 Apr 9 23:35 proxymngr drwxr-xr-x 4 dina wheel 512 Apr 9 23:35 rstart drwxr-xr-x 2 dina wheel 512 Apr 9 23:35 twm drwxr-xr-x 3 dina wheel 512 Apr 9 23:35 xdm drwxr-xr-x 2 dina wheel 512 Apr 9 23:36 xinit drwxr-xr-x 10 dina wheel 512 Apr 9 23:36 xkb drwxr-xr-x 2 dina wheel 512 Apr 9 23:36 xserver drwxr-xr-x 2 dina wheel 512 Apr 9 23:36 xsm [EMAIL PROTECTED] (ttyp7) 2:46:28 /tmp/etc 0# ls -la /etc/X11 lrwxr-xr-x 1 root wheel 11 Apr 10 20:14 /etc/X11 -> ../gugu/X11 [EMAIL PROTECTED] (ttyp7) 2:46:40 /tmp/etc 0# ls -la /etc/X11/ total 19 drwxr-xr-x 13 root wheel 512 Mar 11 01:14 . drwxr-xr-x 9 root wheel 1536 Apr 10 23:03 .. -rw-r--r-- 1 root wheel 4114 Nov 27 09:47 XF86Config drwxr-xr-x 2 root wheel 1024 Mar 30 21:05 app-defaults drwxr-xr-x 2 root wheel 512 Mar 10 22:57 fs drwxr-xr-x 2 root wheel 512 Mar 10 22:59 lbxproxy drwxr-xr-x 2 root wheel 512 Mar 10 22:57 proxymngr drwxr-xr-x 4 root wheel 512 Mar 10 22:57 rstart drwxr-xr-x 2 root wheel 512 Mar 10 22:57 twm drwxr-xr-x 3 root wheel 512 Apr 2 14:01 xdm drwxr-xr-x 2 root wheel 512 Mar 10 22:57 xinit drwxr-xr-x 10 root wheel 512 Apr 9 23:36 xkb drwxr-xr-x 2 root wheel 512 Mar 10 22:58 xserver drwxr-xr-x 2 root wheel 512 Mar 10 22:57 xsm [EMAIL PROTECTED] (ttyp7) 2:46:48 /tmp/etc 0# rsync -anc --delete X11 /etc building file list ... done X11/rstart/rstartd.real X11/xdm/Xresources X11/xdm/Xservers X11/xdm/chooser X11/xdm/xdm-config X11/xkb/xkbcomp wrote 13076 bytes read 44 bytes 3748.57 bytes/sec total size is 2405380 speedup is 183.34 [EMAIL PROTECTED] (ttyp7) 2:47:09 /tmp/etc 0# you see that file /etc/X11/XF86Config is present in destination tree. There is no /tmp/etc/X11/XF86Config in the source tree. So /etc/X11/XF86Config should be deleted during rsync but it was not listed. -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html