Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Jul 2014 02:46:44 +0200
From:      Mark Martinec <Mark.Martinec+freebsd@ijs.si>
To:        Larry Rosenman <ler@lerctr.org>
Cc:        Freebsd fs <freebsd-fs@freebsd.org>, freebsd-current@freebsd.org
Subject:   Re: zfs send/recv: STILL invalid Backup Stream
Message-ID:  <c8e77e506bdba2bc1b9dd20ada388879@mailbox.ijs.si>
In-Reply-To: <fbf874048b94066aabc4e656e2d3157d@thebighonker.lerctr.org>
References:  <62315eb454a95db636b7764aad3c0f9b@thebighonker.lerctr.org> <53D1448C.40908@freebsd.org> <d0612ef9399b4e95bd09e5271c91505b@thebighonker.lerctr.org> <eefa10e173e2e23a88c85c38221a1c22@thebighonker.lerctr.org> <53D15438.6040105@freebsd.org> <0a9cd451c3b4304d2b9d899fcb3decc3@thebighonker.lerctr.org> <cc635a377e817cb57d27650ed3e558f4@thebighonker.lerctr.org> <3d2aac84d962a703fbf56a864ba5f19c@mailbox.ijs.si> <c93ef94a8e9e076b86a65f4986d0e30d@thebighonker.lerctr.org> <9eef3e7e964cb33fd163cc2f9300f326@mailbox.ijs.si> <d5bda7f9ad7f86ec35ab6ba5571aa8bc@thebighonker.lerctr.org> <fbf874048b94066aabc4e656e2d3157d@thebighonker.lerctr.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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@tbh.lerctr.org zfs snapshot -r zroot@${DATE}
> # zfs copy the source to here.
> ssh root@tbh.lerctr.org "zfs send  -v -R zroot@${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@tbh.lerctr.org "zfs send ..." | zfs recv ...

or better yet:

   ssh root@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 :)

Mark



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?c8e77e506bdba2bc1b9dd20ada388879>