Closed deajan closed 4 months ago
So restic totally supports this via https://restic.readthedocs.io/en/latest/040_backup.html#reading-data-from-stdin
We need to find a way to redirect stdin to restic without the need of queues or additionnal python plumbing, to avoid memory copies.
command_runner
allows giving a subprocess a stdin pipe. Let's see if we can pass a fd (sys.stdin). If so, we need to handle:
Basically implemented, we still need to test this in compiled version in both windows and linux.
Tested on Linux and Windows platforms, both compiled and interpreted versions.
See N.L