Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Nov 2016 09:52:06 +0000
From:      Matthew Seaman <matthew@FreeBSD.org>
To:        Victor Sudakov <vas@mpeks.tomsk.su>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: zfs send/receive as dump/restore alternative
Message-ID:  <2829d0f0-e719-dfd0-2ecc-669f2a0ed781@FreeBSD.org>
In-Reply-To: <20161114094246.GA73849@admin.sibptus.transneft.ru>
References:  <20161114054657.GA66229@admin.sibptus.transneft.ru> <1bf448ae-a011-8c69-b199-17d71f4053c3@FreeBSD.org> <20161114094246.GA73849@admin.sibptus.transneft.ru>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--sjow1O2G5rLlU7fcp2H13Sp3UsRqtUAaK
Content-Type: multipart/mixed; boundary="3vGjCDp3kB6r4LKPDGg5TMLMAMJgQt080";
 protected-headers="v1"
From: Matthew Seaman <matthew@FreeBSD.org>
To: Victor Sudakov <vas@mpeks.tomsk.su>
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--



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?2829d0f0-e719-dfd0-2ecc-669f2a0ed781>