Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Jul 2014 20:56:29 -0400
From:      Allan Jude <allanjude@freebsd.org>
To:        freebsd-current@freebsd.org
Subject:   Re: zfs send/recv: STILL invalid Backup Stream
Message-ID:  <53D1AB3D.1060205@freebsd.org>
In-Reply-To: <c8e77e506bdba2bc1b9dd20ada388879@mailbox.ijs.si>
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> <c8e77e506bdba2bc1b9dd20ada388879@mailbox.ijs.si>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--W6c0Q6Vkipw36nWHsmIo2Tanq3SbPfTVI
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 2014-07-24 20:46, Mark Martinec wrote:
> 2014-07-25 01:36 Larry Rosenman wrote:
>=20
>> #!/bin/sh
>> DATE=3D`date "+%Y-%m-%d"`
>> #DATE2=3D2013-03-24
>> #DATE2=3D`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\""
>=20
> Btw, this double-ssh looks awkward, why not just:
>=20
>   ssh root@tbh.lerctr.org "zfs send ..." | zfs recv ...
>=20
> or better yet:
>=20
>   ssh root@tbh.lerctr.org "zfs send ..." | mbuffer -m 16M | zfs recv ..=
=2E
>=20
> (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 :)
>=20
> Mark
> _______________________________________________
> freebsd-current@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.o=
rg"

zxfer can already do this, with the -D option
I actually use misc/clpbar and get a progress bar as well

-D 'bar -s %%size%% -bl 1m -bs 128m'

or in your case: -D 'mbuffer -m 16M'


--=20
Allan Jude


--W6c0Q6Vkipw36nWHsmIo2Tanq3SbPfTVI
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (MingW32)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBAgAGBQJT0atAAAoJEJrBFpNRJZKfB5IP/2HV/y+hjqtkB+lLCXPQVazM
xLJAlMUMB+TbyLLbmJyHYjRiAa3U5Z6P+s99Zk7qxiseDNc6VsJHQh1Y4XP3paQ/
6qR+uGuoGei7Q+nws9I143cwtghsU5HPiR7toq/9zYHy490D/0sZy/HhNq5lgflN
pOmQRowCyWbTY0I2urjuw4CBbWnYZphIxpvZNZ85ELqxZxpSO9NeDzsJVEsCaaCi
2qhaFn40TIQlO2kRoa3J/brzJwUY+DOuAO4qoEC6A9dHW+6ZfIVNW5XSkDVSKhu3
IviYf7RIi8V6D138EnXDw6Nqw4eZ42q6cHD2aO2m50y3PqQ8AAqQLqiOclii001I
rycnj6dclOmBMFS1Wfh6zPRwHb+N3p+M+m1PMJJ+bkwvYl+3xsoMm+mYojTsIyLE
LwHJP8wZa8j8xtpZPREOzMyOggpB2pZGVhkoWhkgwfyGhhX176hjTIblu0a/sh/z
vmR8qbfETrfgbe1wO6O903tVSU4drCKd69fQ1LJ9AYwmI6iE4fTW8okH0F5cZTm4
XcAky4IAA1/IPh4hMqVDR+k1kla05q3K22l5WJOf7FUZ7bea+4OrMvYIXqoh5ctS
3IoDgTyxEpGi5z2C/htRi/lCmaErArUvz9Dho4SYFtDqUE5yMWvb3s++8y8hg6mc
vRXtHRF7mUePxjf1aemO
=ZzW5
-----END PGP SIGNATURE-----

--W6c0Q6Vkipw36nWHsmIo2Tanq3SbPfTVI--



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