Skip to main content
11 events
when toggle format what by license comment
Jun 10, 2023 at 13:44 answer added Stéphane Chazelas timeline score: 2
Jun 10, 2023 at 9:15 vote accept David Scherfgen
Jun 10, 2023 at 8:45 answer added Marcus Müller timeline score: 2
Jun 10, 2023 at 7:49 comment added Marcus Müller By the way, the ability to have multiple concurrent streams is technically not a feature of ssh but of TCP/IP, ssh on top of that capability just also can internally and optionally transport multiple streams within one ssh connection.
Jun 10, 2023 at 7:46 comment added Marcus Müller There's really nothing special to do, just for example use ssh to send that ZFS stream whilst using another ssh to copy that file; e.g. zfs send | zstd -10 | ssh user@host sh -c 'zstd -d | zfs receive tank/vm@snapshot' & cat somefile.txt | ssh user@host sh -c 'cat > somefile.txt'.
Jun 10, 2023 at 4:55 comment added David Scherfgen I didn't know about that feature of SSH! Thanks for pointing it out. I'm not sure yet how to use it in an automated way, though.
Jun 10, 2023 at 0:12 comment added Marcus Müller But the thing is that ssh is exactly that multiplex you're looking for and can share one control master connection. That's exactly what you ask for - kind of the opposite of inelegant :)
Jun 9, 2023 at 23:14 history edited David Scherfgen CC BY-SA 4.0
Made clear that it's an example
Jun 9, 2023 at 23:12 comment added David Scherfgen Well, it's an example. Yes, I could transfer the files individually using multiple SSH connections, but it seemed "inelegant".
Jun 9, 2023 at 23:06 comment added Marcus Müller Why would you put a zfs send stream into a tar archive? That makes no sense, tar archives are for files! I think you probably have a good intention there, but I don't quite get it. Couldn't you just have two ssh connections?
Jun 9, 2023 at 22:56 history asked David Scherfgen CC BY-SA 4.0