Bug ID: 11253
           Summary: --exclude=dir doesn't work with --files-from=
           Product: rsync
           Version: 3.1.1
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5
         Component: core
        QA Contact:

Created attachment 11015
Reproducer/test case

If I just pass --exclude=file or --exclude=dir to rsync, the file or dir is
excluded correctly.

However, if you pass a list of files in --files-from= that includes the file I
want to exclude, then only --exclude=file works as before; --exclude=dir
doesn't seem to do anything at all.

As a workaround, I've found that --exclude=dir/** will actually exclude dir, as
I originally wanted.

This behaviour is counter-intuitive to me; at the very least, I'd expect
--exclude=dir to work the same as --exclude=file.

I've checked that the behaviour is present in latest git master. I've also
included a simple reproducer script (uncomment 1 of the 4 rsync commands and
run it to see the result of the transfer).

You are receiving this mail because:
You are the QA Contact for the bug.
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options:
Before posting, read:

Reply via email to