Because your source is "mail/", you need to remove the mail/ from your
exclude patterns. If you used "mail" without the trailing slash then
you'd need it. rsync -vv should help you debug exclude patterns.
- Dave Dykstra
On Sat, Apr 20, 2002 at 11:18:18AM -0400, Nikolaus Hiebaum
wrote:> Hi -
>
> I want to use rsync in combination with a list of files it should exclude,
> but somewhere I seem to have a problem.
>
> The problem is that the files and directories I list in the file to be
> excluded are in fact synchronized on the remote server. I should add that
> they are not present on the remote server and shall not, thus, excluding
> them from synchronization. :)
>
> The "exclude file" looks like this:
> ---snip---
> - mail/IN.SPAM
> - mail/IN.posted-usenet
> - mail/backup/
> - mail/headc.gz
> - mail/incoming/
> - mail/miscellaneous
> - mail/saved-messages2
> - mail/sent-mail-2001/
> - mail/sent-mail2
> - mail/techstuff
> ---snap---
>
> In the prompt I type
>
> rsync -avpPz --exclude-from "exclude-from-mailsyncing" mail/ -e
ssh REMOTE_SERVER:mail/
>
> It seems that the file (i.e., exclude-from-mailsyncing") with the
> exclusion list is not read. There is no error message, and -v or -vv does
> not give any hint where the mistake would be.
>
> Do you guys have any idea?
>
> --
> CU, Niki
> *Draft beer, not people*
>
>
>
> --
> To unsubscribe or change options:
http://lists.samba.org/mailman/listinfo/rsync
> Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html