[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: rsyn und include/exclude



Roland M. Kruggel schrieb:

Hallo Liste,

folgender rsycaufruf:
rsync .... --exclude-from="exfile" --include-from="incfile" ....

exfile:
...
/var/log/*
...

incfile:
...
/var/log/*log
...

(nur Beispiel)

Das exclude funktioniert. Er lässt /var/log komplett aus. Das include funktioniert aber nicht. /var/log/*log wird nicht angefasst.

Wo liegt mein denfehler?


Hallo Roland,

versuch's doch mal umgekehrt ...
rsync .... --include-from="incfile" --exclude-from="exfile"

nur so 'ne Idee, weil beim matching intern wohl erst das exclude gefunden wird und es sich um denselben Pfad handelt. Das zweite Match wird dann in der Liste nicht mehr erreicht.

Gruß
; Michael




Reply to: