1eda14cbcSMatt Macy.\" 2eda14cbcSMatt Macy.\" CDDL HEADER START 3eda14cbcSMatt Macy.\" 4eda14cbcSMatt Macy.\" The contents of this file are subject to the terms of the 5eda14cbcSMatt Macy.\" Common Development and Distribution License (the "License"). 6eda14cbcSMatt Macy.\" You may not use this file except in compliance with the License. 7eda14cbcSMatt Macy.\" 8eda14cbcSMatt Macy.\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9eda14cbcSMatt Macy.\" or http://www.opensolaris.org/os/licensing. 10eda14cbcSMatt Macy.\" See the License for the specific language governing permissions 11eda14cbcSMatt Macy.\" and limitations under the License. 12eda14cbcSMatt Macy.\" 13eda14cbcSMatt Macy.\" When distributing Covered Code, include this CDDL HEADER in each 14eda14cbcSMatt Macy.\" file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15eda14cbcSMatt Macy.\" If applicable, add the following below this CDDL HEADER, with the 16eda14cbcSMatt Macy.\" fields enclosed by brackets "[]" replaced with your own identifying 17eda14cbcSMatt Macy.\" information: Portions Copyright [yyyy] [name of copyright owner] 18eda14cbcSMatt Macy.\" 19eda14cbcSMatt Macy.\" CDDL HEADER END 20eda14cbcSMatt Macy.\" 21eda14cbcSMatt Macy.\" Copyright (c) 2020 by Delphix. All rights reserved. 22*16038816SMartin Matuska.\" 23*16038816SMartin Matuska.Dd May 8, 2021 24eda14cbcSMatt Macy.Dt ZSTREAM 8 25eda14cbcSMatt Macy.Os 26*16038816SMartin Matuska. 27eda14cbcSMatt Macy.Sh NAME 28eda14cbcSMatt Macy.Nm zstream 29*16038816SMartin Matuska.Nd manipulate ZFS send streams 30eda14cbcSMatt Macy.Sh SYNOPSIS 31eda14cbcSMatt Macy.Nm 32eda14cbcSMatt Macy.Cm dump 33eda14cbcSMatt Macy.Op Fl Cvd 34eda14cbcSMatt Macy.Op Ar file 35eda14cbcSMatt Macy.Nm 36eda14cbcSMatt Macy.Cm redup 37eda14cbcSMatt Macy.Op Fl v 38eda14cbcSMatt Macy.Ar file 39eda14cbcSMatt Macy.Nm 40eda14cbcSMatt Macy.Cm token 41eda14cbcSMatt Macy.Ar resume_token 42*16038816SMartin Matuska. 43eda14cbcSMatt Macy.Sh DESCRIPTION 44eda14cbcSMatt MacyThe 45eda14cbcSMatt Macy.Sy zstream 46*16038816SMartin Matuskautility manipulates ZFS send streams output by the 47eda14cbcSMatt Macy.Sy zfs send 48eda14cbcSMatt Macycommand. 49eda14cbcSMatt Macy.Bl -tag -width "" 50eda14cbcSMatt Macy.It Xo 51eda14cbcSMatt Macy.Nm 52eda14cbcSMatt Macy.Cm dump 53eda14cbcSMatt Macy.Op Fl Cvd 54eda14cbcSMatt Macy.Op Ar file 55eda14cbcSMatt Macy.Xc 56eda14cbcSMatt MacyPrint information about the specified send stream, including headers and 57eda14cbcSMatt Macyrecord counts. 58eda14cbcSMatt MacyThe send stream may either be in the specified 59eda14cbcSMatt Macy.Ar file , 60eda14cbcSMatt Macyor provided on standard input. 61eda14cbcSMatt Macy.Bl -tag -width "-D" 62eda14cbcSMatt Macy.It Fl C 63eda14cbcSMatt MacySuppress the validation of checksums. 64eda14cbcSMatt Macy.It Fl v 65eda14cbcSMatt MacyVerbose. 66eda14cbcSMatt MacyPrint metadata for each record. 67eda14cbcSMatt Macy.It Fl d 68eda14cbcSMatt MacyDump data contained in each record. 69eda14cbcSMatt MacyImplies verbose. 70eda14cbcSMatt Macy.El 71*16038816SMartin Matuska.Pp 72*16038816SMartin MatuskaThe 73*16038816SMartin Matuska.Nm zstreamdump 74*16038816SMartin Matuskaalias is provided for compatibility and is equivalent to running 75*16038816SMartin Matuska.Nm 76*16038816SMartin Matuska.Cm dump . 77eda14cbcSMatt Macy.It Xo 78eda14cbcSMatt Macy.Nm 79eda14cbcSMatt Macy.Cm token 80eda14cbcSMatt Macy.Ar resume_token 81eda14cbcSMatt Macy.Xc 82eda14cbcSMatt MacyDumps zfs resume token information 83eda14cbcSMatt Macy.It Xo 84eda14cbcSMatt Macy.Nm 85eda14cbcSMatt Macy.Cm redup 86eda14cbcSMatt Macy.Op Fl v 87eda14cbcSMatt Macy.Ar file 88eda14cbcSMatt Macy.Xc 89eda14cbcSMatt MacyDeduplicated send streams can be generated by using the 90eda14cbcSMatt Macy.Nm zfs Cm send Fl D 91eda14cbcSMatt Macycommand. 92eda14cbcSMatt MacyThe ability to send deduplicated send streams is deprecated. 93eda14cbcSMatt MacyIn the future, the ability to receive a deduplicated send stream with 94eda14cbcSMatt Macy.Nm zfs Cm receive 95eda14cbcSMatt Macywill be removed. 96eda14cbcSMatt MacyHowever, deduplicated send streams can still be received by utilizing 97eda14cbcSMatt Macy.Nm zstream Cm redup . 98eda14cbcSMatt Macy.Pp 99eda14cbcSMatt MacyThe 100eda14cbcSMatt Macy.Nm zstream Cm redup 101eda14cbcSMatt Macycommand is provided a 102eda14cbcSMatt Macy.Ar file 103eda14cbcSMatt Macycontaining a deduplicated send stream, and outputs an equivalent 104eda14cbcSMatt Macynon-deduplicated send stream on standard output. 105eda14cbcSMatt MacyTherefore, a deduplicated send stream can be received by running: 106*16038816SMartin Matuska.Dl # Nm zstream Cm redup Pa DEDUP_STREAM_FILE | Nm zfs Cm receive No … 107eda14cbcSMatt Macy.Bl -tag -width "-D" 108eda14cbcSMatt Macy.It Fl v 109eda14cbcSMatt MacyVerbose. 110eda14cbcSMatt MacyPrint summary of converted records. 111*16038816SMartin Matuska.El 112*16038816SMartin Matuska.El 113*16038816SMartin Matuska. 114eda14cbcSMatt Macy.Sh SEE ALSO 115eda14cbcSMatt Macy.Xr zfs 8 , 116*16038816SMartin Matuska.Xr zfs-receive 8 , 117*16038816SMartin Matuska.Xr zfs-send 8 118