2014-07-25 01:36 Larry Rosenman wrote: > #!/bin/sh > DATE=`date "+%Y-%m-%d"` > #DATE2=2013-03-24 > #DATE2=`date -v "-1d" "+%Y-%m-%d"` > # snap the source > ssh root_at_tbh.lerctr.org zfs snapshot -r zroot_at_${DATE} > # zfs copy the source to here. > ssh root_at_tbh.lerctr.org "zfs send -v -R zroot_at_${DATE} | \ > ssh home.lerctr.org \"zfs recv -F -u -v -d zroot/backups/TBH2\"" Btw, this double-ssh looks awkward, why not just: ssh root_at_tbh.lerctr.org "zfs send ..." | zfs recv ... or better yet: ssh root_at_tbh.lerctr.org "zfs send ..." | mbuffer -m 16M | zfs recv ... (The misc/mbuffer compensates for bursty zfs reads and writes. A note to myself: I should suggest to Allan to add mbuffer in a pipe as used in sysutils/zxfer, instead of patching zxfer for our local use :) MarkReceived on Thu Jul 24 2014 - 22:46:50 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:51 UTC