I basically want to do this:
- Copy a single file using rsync
- Pipe that content to another command
In my specific usecase I want to get a database dump from another server and directly import it to the local machines database.
Using other tools than rsync is no option, as I've restricted the ssh shell to only use rrsync, which is a handy tool to restrict file access to different locations. This makes it easy for me to restrict the files that rsync can copy or modify. If you can do that restriction without rrsync, then other options like scp would also work.
I found no way to do it without a temporary file, any ideas?