I'd like to backup a host1 dataset into host2 via zfs send/receive & netcat but I can't figure out the right syntax. I want to run all the commands from host2
So far I've come up with something like:
"nc -l 9999 | zfs receive -F ssd_bkp/mail_home" && "ssh host1 zfs send -v zfs/mail_home@mail_home-20241023182500 | nc -w 1800 host2 9999"
but it doesn't work as intended.
Any ideas ?
So far I've come up with something like:
"nc -l 9999 | zfs receive -F ssd_bkp/mail_home" && "ssh host1 zfs send -v zfs/mail_home@mail_home-20241023182500 | nc -w 1800 host2 9999"
but it doesn't work as intended.
Any ideas ?