Dear rsync pros, I have a question:
How can I filter a file that is being transferred? Rsync has a --filter option, but that can only filter the list of files – not the file contents.
I'd like to run sed on the file stream before it is stored.
Is there any way to do this?
I already tried to sneak a script into the --rsh option but that did not go well of course.
@chpietsch If you're talking about filter at the src, have you tried feeding a grep+find output into rysnc to transfer?
@bahmanm I don't mean filter in the sense of selecting files but in the sense of Unix stream filters.