Christian Pietsch 🍑 on Nostr: Dear rsync pros, I have a question: How can I filter a file that is being ...
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 #gnu #linux #shell #programming
Published at
2023-08-11 14:42:16Event JSON
{
"id": "6ac8eecb4325425dc8dd58ff6b30d049b9e762f99d26d362f1199e28f2936023",
"pubkey": "e13fe8e9df7bebaf8baf5dfdd964330b0f3b95985245fa86101de0a5daf75827",
"created_at": 1691764936,
"kind": 1,
"tags": [
[
"t",
"programming"
],
[
"t",
"shell"
],
[
"t",
"linux"
],
[
"t",
"gnu"
],
[
"t",
"rsync"
],
[
"t",
"cli"
],
[
"t",
"sysadmin"
],
[
"proxy",
"https://digitalcourage.social/users/chpietsch/statuses/110871506871086890",
"activitypub"
]
],
"content": "Dear rsync pros, I have a question:\n\nHow 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.\n\nI'd like to run sed on the file stream before it is stored.\n\nIs there any way to do this?\n\n#sysadmin #cli #rsync #gnu #linux #shell #programming",
"sig": "12b07f76cc880640b2b5769a68417f507ca869b14133f598f4c345c34f3aeea4091da9e594e790caf617b9c1be54f6259f21bd2bfb51eda83c03010dfa0d64f5"
}