zfs send/recv: STILL invalid Backup Stream

Allan Jude allanjude at freebsd.org
Fri Jul 25 00:56:08 UTC 2014


On 2014-07-24 20:46, Mark Martinec wrote:
> 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@${DATE}
>> # zfs copy the source to here.
>> ssh root at 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 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 :)
> 
> Mark
> _______________________________________________
> freebsd-current at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe at freebsd.org"

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'


-- 
Allan Jude

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 899 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-current/attachments/20140724/328fcb6a/attachment.sig>


More information about the freebsd-current mailing list