From owner-freebsd-questions@freebsd.org Mon Nov 14 14:49:18 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 6D0D8C40C77 for ; Mon, 14 Nov 2016 14:49:18 +0000 (UTC) (envelope-from vas@mpeks.tomsk.su) Received: from relay2.tomsk.ru (mail.sibptus.tomsk.ru [212.73.124.5]) by mx1.freebsd.org (Postfix) with ESMTP id 8D30F12D2; Mon, 14 Nov 2016 14:49:16 +0000 (UTC) (envelope-from vas@mpeks.tomsk.su) X-Virus-Scanned: by clamd daemon 0.98.5_1 for FreeBSD at relay2.tomsk.ru Received: from [212.73.125.240] (HELO admin.sibptus.transneft.ru) by relay2.tomsk.ru (CommuniGate Pro SMTP 5.1.16) with ESMTPS id 39417582; Mon, 14 Nov 2016 20:45:50 +0600 Received: from admin.sibptus.transneft.ru (sudakov@localhost [127.0.0.1]) by admin.sibptus.transneft.ru (8.14.9/8.14.9) with ESMTP id uAEEnEs0078779; Mon, 14 Nov 2016 21:49:14 +0700 (KRAT) (envelope-from vas@mpeks.tomsk.su) Received: (from sudakov@localhost) by admin.sibptus.transneft.ru (8.14.9/8.14.9/Submit) id uAEEnBe8078778; Mon, 14 Nov 2016 21:49:11 +0700 (KRAT) (envelope-from vas@mpeks.tomsk.su) X-Authentication-Warning: admin.sibptus.transneft.ru: sudakov set sender to vas@mpeks.tomsk.su using -f Date: Mon, 14 Nov 2016 21:49:11 +0700 From: Victor Sudakov To: Matthew Seaman Cc: freebsd-questions@freebsd.org Subject: Re: zfs send/receive as dump/restore alternative Message-ID: <20161114144911.GA77411@admin.sibptus.transneft.ru> References: <20161114054657.GA66229@admin.sibptus.transneft.ru> <1bf448ae-a011-8c69-b199-17d71f4053c3@FreeBSD.org> <20161114094246.GA73849@admin.sibptus.transneft.ru> <2829d0f0-e719-dfd0-2ecc-669f2a0ed781@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2829d0f0-e719-dfd0-2ecc-669f2a0ed781@FreeBSD.org> Organization: AO "Svyaztransneft", SibPTUS 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.7.1 (2016-10-04) 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 14:49:18 -0000 Matthew Seaman 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. Matthew, I'm not quite following you. Can you please rephrase? What's the optimal format for offline backup of the whole box for disaster recovery? Isn't that a replication stream? > > > 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 > > 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. Inconvenient. > > > So if you ever get to restore several files and don't have enough > > space to receive the whole stream, what would you do? > > > > 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... That would mean storing two copies of data: a backup for disaster recovery and an archive for restoring users' files and configs, which is not feasible. But I'll probably heed Steve's advice and use snapshots for undoing users' mistakes, instead of archives. -- Victor Sudakov, VAS4-RIPE, VAS47-RIPN sip:sudakov@sibptus.tomsk.ru