As according to the documentation, a - in pull writes to stdout and a - in push reads from stdin.
However, this doesn’t appear to work, as what happens is a directory called - is created on the incus host machine and an empty file called foo is created on serverB/var/lib/foo
Have I misunderstood the documenation with regards to pull/push?
Ah, okay, that makes sense. I thought perhaps that incus would work some magic and allow for recursive transfers of a directory from one instance to another instance (super handy if one is migrating an instance to another OS, but wants to transfer the contents of a directory from the first instance - I guess a bit like zfs snapshot send).
As such, I’m now just tarballing up the directory to transfer to the other machine instead
The thing is that there’s no way for Incus to know what commands get executed further down the pipe, so we’d rather not make any assumptions.
Note that we have someone who will be working on cross-instance transfer soon, so that will get easier then.