rsync "exclude-from"

Nikolaus Hiebaum news at hiebaum.org
Sat Apr 20 08:20:02 EST 2002


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*






More information about the rsync mailing list