How to make rsync read SRC from STDIN? How to make rsync read SRC from STDIN? shell shell

How to make rsync read SRC from STDIN?


This is right, it doesn't work this way. It is because rsync is made to transfer complete file trees from A to B.

Because of the way rsync works, it cannot work, because rsync calculates several checksums before choosing to transfer a particular file (or parts of it), and doing so in only 2 iterations (ping-pong-steps).

That means a file has to be read several times. That would not work with a (potentially large) SQL dump because it would have to be buffered somehow. And this buffering is up to the user.

Actually storing the file should be the best workaround, especially if it is a file which only gets gradual differences.