zfs send compression query
Sean Chittenden
sean at chittenden.org
Thu Jan 7 08:05:40 UTC 2016
Bonus points:
$ SNAP_SIZE=`zfs send -nvP "vms/133 at 2016-01-07.0648" | tail -n 1 | awk '{print $2}'`
$ zfs send -Rv vms/133 at 2016-01-07.0648 | pv -r -a -b -t -e -s "${SNAP_SIZE}" -B 512m | pigz -9c | ssh backup@[redacted] "pigz -dc | zfs recv -Fdvu storage/snapshots"
Useful for getting an ETA. -sc
--
Sean Chittenden
sean at chittenden.org
> On Jan 6, 2016, at 23:59, John <freebsd-lists at potato.growveg.org> wrote:
>
> On Thu, Jan 07, 2016 at 07:36:11AM +0000, John wrote:
>
>> I'm guessing I'm doing something wrong with the pipes, but not sure
>> how to solve it...
>
> sorted it, now that I have had enough caffeine. I was missing
> quotation marks and misplaced a pipe!
>
> $ zfs send -Rv vms/133 at 2016-01-07.0648 | pigz -9c |
> ssh backup@[redacted] "pigz -dc | zfs recv -Fdvu
> storage/snapshots"
> send from @ to vms/133 at 2016-01-07.0648 estimated size is 32.1G
> total estimated size is 32.1G
> TIME SENT SNAPSHOT
> receiving full stream of vms/133 at 2016-01-07.0648 into storage/snapshots/133 at 2016-01-07.0648
> 07:50:11 16.7M vms/133 at 2016-01-07.0648
> 07:50:12 63.2M vms/133 at 2016-01-07.0648
> 07:50:13 143M vms/133 at 2016-01-07.0648
> 07:50:14 153M vms/133 at 2016-01-07.0648
> 07:50:15 164M vms/133 at 2016-01-07.0648
>
> *happy*
> --
> John _______________________________________________
> freebsd-fs at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-fs
> To unsubscribe, send any mail to "freebsd-fs-unsubscribe at freebsd.org"
More information about the freebsd-fs
mailing list