DO NOT REPLY [Bug 6752] New: --force option doesn't work as expected/documented

samba-bugs at samba-bugs at
Tue Sep 22 20:29:41 MDT 2009

           Summary: --force option doesn't work as expected/documented
           Product: rsync
           Version: 3.0.6
          Platform: x64
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P3
         Component: core
        AssignedTo: wayned at
        ReportedBy: ciolfi at
         QAContact: rsync-qa at

Run following script and you'll receive:

cannot delete non-empty directory: s1/CVS
delete non-empty directory: s1/CVS
cannot delete non-empty directory: s1

which conflicts with the doc on --force. Googling this also brings up a number
of others with the same problem. The source of the problem is the exclude

-------------------- -----

# Reproduction steps where --force doesn't force deletion.

rm -rf src dst

mkdir -p dst/s1/CVS
echo foo > dst/s1/CVS/Root

mkdir -p src/s2/foo.txt

rsync -az --filter='exclude, /**/CVS/Root' --filter='protect, /**/CVS/Root'
rce --delete --delete-excluded src/ dst

Configure bugmail:
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.

More information about the rsync mailing list