From owner-freebsd-questions@freebsd.org Wed Apr 24 16:39:42 2019 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 333FC159D603 for ; Wed, 24 Apr 2019 16:39:42 +0000 (UTC) (envelope-from vas@mpeks.tomsk.su) Received: from admin.sibptus.ru (admin.sibptus.ru [IPv6:2001:19f0:5001:21dc::10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4DDB76DB95 for ; Wed, 24 Apr 2019 16:39:40 +0000 (UTC) (envelope-from vas@mpeks.tomsk.su) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sibptus.ru; s=20181118; h=In-Reply-To:Message-ID:Subject:To:From:Date; bh=X5tjDt8uOeB2udWFNB0tFnfj9+SYxL4e/Uzg8Tt49ng=; b=j87XEgMSbaWjoDJ1EVBtdPfj7x abpLcM7eLL4b0m8iQ+KTwjKGP1KgoDTSm+FONBYN3ocD56f38HGSIhkPWyi6IRTCGkIO90kAU4TkO Ye4aMO8rDuFtnKOomdTHRmSpzrNAe4IGODd454qYo2BsriXGbe9+wx5MoxMjRmnoGy+U=; Received: from vas by admin.sibptus.ru with local (Exim 4.92 (FreeBSD)) (envelope-from ) id 1hJKvs-0009Tw-1T for freebsd-questions@freebsd.org; Wed, 24 Apr 2019 23:39:40 +0700 Date: Wed, 24 Apr 2019 23:39:40 +0700 From: Victor Sudakov To: freebsd-questions@freebsd.org Subject: Re: saving "zfs send" to a Windows host Message-ID: <20190424163940.GA36280@admin.sibptus.ru> References: <20190423054243.GA4659@admin.sibptus.ru> <201904230926.36122.dr.klepp@gmx.at> <239425b6-a313-3fb8-bc26-321741a4a4d2@gmx.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="LZvS9be/3tNcYl/X" Content-Disposition: inline In-Reply-To: <239425b6-a313-3fb8-bc26-321741a4a4d2@gmx.com> X-PGP-Key: http://www.dreamwidth.org/pubkey?user=victor_sudakov X-PGP-Fingerprint: 10E3 1171 1273 E007 C2E9 3532 0DA4 F259 9B5E C634 User-Agent: Mutt/1.11.4 (2019-03-13) Sender: Victor Sudakov X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Apr 2019 16:39:42 -0000 --LZvS9be/3tNcYl/X Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Nikos Vassiliadis wrote: >=20 > Using ssh as transport is fine. I'd advice against saving zfs streams to > a non-ZFS filesystem because you will have no way to ensure that your > stream is OK. A single bit flip will render the stream unusable and you > will only discover this when you try to receive the stream. The integrity of the backup cannot be checked with "zfs receive -n", that is true, but to some extent it can be checked with zstreamdump (or at least I hope so). For example, where /var/tmp/bad.zfs is the intentionally corrupt backup: root@vas:~ # zfs receive -nv d02/kaban < /var/tmp/bad.zfs would receive full stream of zroot/var/mail@test into d02/kaban@test root@vas:~ # zfs receive -v d02/kaban < /var/tmp/bad.zfs receiving full stream of zroot/var/mail@test into d02/kaban@test cannot receive new filesystem stream: checksum mismatch or incomplete stream root@vas:~ # zstreamdump < /var/tmp/bad.zfs=20 BEGIN record hdrtype =3D 1 features =3D 4 magic =3D 2f5bacbac creation_time =3D 5cc08e0f type =3D 2 flags =3D 0x4 toguid =3D 2074530c7350e1e2 fromguid =3D 0 toname =3D zroot/var/mail@test invalid checksum Incorrect checksum in record header. Expected checksum =3D 1863eeb012/1c685a9e2c25/16eef022635779/e575d4bbf565c75 SUMMARY: Total DRR_BEGIN records =3D 1 Total DRR_END records =3D 0 Total DRR_OBJECT records =3D 3 Total DRR_FREEOBJECTS records =3D 1 Total DRR_WRITE records =3D 0 Total DRR_WRITE_BYREF records =3D 0 Total DRR_WRITE_EMBEDDED records =3D 0 Total DRR_FREE records =3D 2 Total DRR_SPILL records =3D 0 Total records =3D 7 Total write size =3D 0 (0x0) Total stream length =3D 2496 (0x9c0) root@vas:~ #=20 --=20 Victor Sudakov, VAS4-RIPE, VAS47-RIPN 2:5005/49@fidonet http://vas.tomsk.ru/ --LZvS9be/3tNcYl/X Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJcwJFMAAoJEA2k8lmbXsY0TqMH/i87vLlhbKjnQjTVOFe4x4WI dk460CR4919CzDJ80TU8UjBwM8W6LEx+Bzb7x6JPH8LiuSGlCA9JcS1t1GGYmzAd 59VPnYWAIHOGMYKIwJN/w6CPFUC1DJY8UI53Okm5GwyK7A5pDpj2bkp1ZhyrQV5p d2+xSZJBcyDEC45nXEOc7tDyRlSHLkM5wD0OKtOSk8V68KwlgiEQWTtHrS96s3lE iW9mIYhqHOi8YKynRIybRffuN9XdF4LN0gNNf2HAx2HcCvHkZJBgAs4DgBLF0XhJ CxPVhtMT47eIv+KupFfBEAIxZ0cV6dmWjwLhwZdnBqhUQZ9445d+WEijxx8lgD0= =Lhn5 -----END PGP SIGNATURE----- --LZvS9be/3tNcYl/X--