digitalcourage.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
Diese Instanz wird betrieben von Digitalcourage e.V. für die Allgemeinheit. Damit wir das nachhaltig tun können, erheben wir einen jährlichen Vorausbeitrag von 1€/Monat per SEPA-Lastschrifteinzug.

Server stats:

859
active users

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?

#sysadmin#cli#rsync

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?

Christian Pietsch (old acct.)

@bahmanm I don't mean filter in the sense of selecting files but in the sense of Unix stream filters.