I am using ZFS on Linux, and trying to setup remote replication. But I have bad ssh connection, and zfs send/receive over ssh restarts again. I know there is a issue on ZoL, but I don't know when it will be implemented, or a new stable release come. I've hear about mbuffer, but seems it can't do restart. Maybe it is possible to use it somehow like zfs send | mbuffer | while true; do ssh ...; done, but not sure.
Right now I am doing zfs send to a file, rsync it with --append --partial to remote and restore. but it consumes space, need manual assistance, and is a dirty solution. I want to have some automated solution, like sanoid/syncoid, to keep a mirror of my pool with all snapshots. Maybe some bash script that doing the same, but keeps all snapshots on remote, deletes files on host when they are successfully rsynced, etc. Please help
P.S. I know there is a duplicate question, but there is no any solution. In my question I use some dirty solution, and want to replace or improve it