From owner-freebsd-questions@freebsd.org Mon Nov 14 09:52:20 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5E8FFC3D95D for ; Mon, 14 Nov 2016 09:52:20 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [81.2.117.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.infracaninophile.co.uk", Issuer "infracaninophile.co.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id E47D4137 for ; Mon, 14 Nov 2016 09:52:19 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from zero-gravitas.local (unknown [85.199.232.226]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: m.seaman@infracaninophile.co.uk) by smtp.infracaninophile.co.uk (Postfix) with ESMTPSA id 7BBFE2E88; Mon, 14 Nov 2016 09:52:13 +0000 (UTC) Authentication-Results: smtp.infracaninophile.co.uk; dmarc=none header.from=FreeBSD.org Authentication-Results: smtp.infracaninophile.co.uk/7BBFE2E88; dkim=none; dkim-atps=neutral Subject: Re: zfs send/receive as dump/restore alternative To: Victor Sudakov References: <20161114054657.GA66229@admin.sibptus.transneft.ru> <1bf448ae-a011-8c69-b199-17d71f4053c3@FreeBSD.org> <20161114094246.GA73849@admin.sibptus.transneft.ru> Cc: freebsd-questions@freebsd.org From: Matthew Seaman Message-ID: <2829d0f0-e719-dfd0-2ecc-669f2a0ed781@FreeBSD.org> Date: Mon, 14 Nov 2016 09:52:06 +0000 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <20161114094246.GA73849@admin.sibptus.transneft.ru> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="sjow1O2G5rLlU7fcp2H13Sp3UsRqtUAaK" X-Spam-Status: No, score=-0.4 required=5.0 tests=BAYES_00,RDNS_NONE, SPF_SOFTFAIL autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on smtp.infracaninophile.co.uk X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Nov 2016 09:52:20 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --sjow1O2G5rLlU7fcp2H13Sp3UsRqtUAaK Content-Type: multipart/mixed; boundary="3vGjCDp3kB6r4LKPDGg5TMLMAMJgQt080"; protected-headers="v1" From: Matthew Seaman To: Victor Sudakov Cc: freebsd-questions@freebsd.org Message-ID: <2829d0f0-e719-dfd0-2ecc-669f2a0ed781@FreeBSD.org> Subject: Re: zfs send/receive as dump/restore alternative References: <20161114054657.GA66229@admin.sibptus.transneft.ru> <1bf448ae-a011-8c69-b199-17d71f4053c3@FreeBSD.org> <20161114094246.GA73849@admin.sibptus.transneft.ru> In-Reply-To: <20161114094246.GA73849@admin.sibptus.transneft.ru> --3vGjCDp3kB6r4LKPDGg5TMLMAMJgQt080 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 2016/11/14 09:42, Victor Sudakov wrote: > What if I have not enough space to expand the whole datastream as a > filesystem? My replication stream package is 119G large at the moment > one one server, I have neither free space nor spare time to expand the > whole of it into an altroot. Yeah. You don't store the stream data as one big file, but you expand it out to a filesystem on receipt. That /shouldn't/ require very much more space than storing it as one big file. > If I have a complete replication stream package, can I "zfs recv" a > single dataset from it? It would be silly to expand the whole pool to > extract a couple of files from zroot/usr/home/johndoe/docs=20 No -- I don't think this is possible. If you want to be able to restore individual datasets, then you need to zfs send individual datasets. > So if you ever get to restore several files and don't have enough > space to receive the whole stream, what would you do? >=20 > With restore or tar you can always do a partial extract. Yes. ZFS is neither restore nor tar, and behaves differently. If you want a backup that behaves like a tar archive, then you could simply use tar(1) for your backups... Cheers, Matthew --3vGjCDp3kB6r4LKPDGg5TMLMAMJgQt080-- --sjow1O2G5rLlU7fcp2H13Sp3UsRqtUAaK Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQJ8BAEBCgBmBQJYKYlMXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQxOUYxNTRFQ0JGMTEyRTUwNTQ0RTNGMzAw MDUxM0YxMEUwQTlFNEU3AAoJEABRPxDgqeTnOsgQAIvYVKTl1pVLKyK5yYnFNEZ1 1yjwmQ5yRKFkyF1kFWwjRlj2yzCnFClIYyLfbYb6HgdsT83KNiJL31RhnjNq3lUt SouKvGpMchf7b/lUsouZZEjSHp/M6mQ9pWRceVfwk1yDonUnJaMnnNt6G1j7Kxtl p3ThtaEeg2xa1wboC5E6Ami9kOjEcad0/+XaD3/ebOf0oqMbLzdhuAWU6/+E/aMb yXYDQR6G1ZI4cwNwy+hNlCWAKYhQipnwRycrQhW85Pf1o2e8tSopimB1InFYTTtZ 0nkOA2Za93/8ezq5XN5lKP7h/MM0ZFokXpSgfGINUXY5E1uYTbZ+nkDDntUHNJm4 JSIE4fBhdicBjnc7PeBsIjFROqTg0+SU4jb/L7RP8O3LDzLwS6LLuY2aA/6h4oeA UQicr30/t7Dglx4XgCl25uHYXvY+PG2J/dlsuwFZtc2324wYDqHwsm7VmJUhFNFS wHoMFVVQ/6+3/iyX9YkEbJ3bLe0fxXdNappFtmrHVxaETDF/FgMx5qpFwJP0gBYH HA3kXnpo2F86uTsn4Ihwo6IuyGPvh10b+EeKC/rzIPMhfUq7oh+3KZbKq6At/MzB diWzO9XTZt7UktlOclBHOKyvc2eb9GA8NXH8GXAzBxpYoR/5LQQ5yNUw8BBak/lD 5l/YV5OXwoH2LY7tfxil =KOti -----END PGP SIGNATURE----- --sjow1O2G5rLlU7fcp2H13Sp3UsRqtUAaK--