From owner-freebsd-questions@freebsd.org Mon Nov 14 15:31:31 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 0B770C4163D for ; Mon, 14 Nov 2016 15:31:31 +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 61EFEDD3 for ; Mon, 14 Nov 2016 15:31:29 +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 39417611; Mon, 14 Nov 2016 21:28:03 +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 uAEFVRWk079075; Mon, 14 Nov 2016 22:31:27 +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 uAEFVPVH079074; Mon, 14 Nov 2016 22:31:25 +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 22:31:25 +0700 From: Victor Sudakov To: "Steve O'Hara-Smith" Cc: freebsd-questions@freebsd.org Subject: Re: zfs send/receive as dump/restore alternative Message-ID: <20161114153124.GA78787@admin.sibptus.transneft.ru> References: <20161114054657.GA66229@admin.sibptus.transneft.ru> <20161114103657.63c03ab1d039c59db18fad90@sohara.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20161114103657.63c03ab1d039c59db18fad90@sohara.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 15:31:31 -0000 Steve O'Hara-Smith wrote: > > > > I now run a couple of systems fully on zfs, and use e.g. > > "zfs send -Rv zroot@2016-10-01 > /mnt1/2016-09-25.zfs" > > for a full system backup to a remote file server. > > > > With restore(8), I could restore any separate filesystem or even a single > > file/directory from the dump, even interactively. > > As others have indicated the zfs stream is not designed as an > archive format but rather for efficient filesystem replication. Hopefully it's good for disaster recovery too. I have even written about my experience with zfs bare metal restore here: http://victor-sudakov.dreamwidth.org/357521.html > > How would you restore a) a single dataset or b) a single file from a > > replication stream package? I really need this mode of operation for > > undeleting users' files etc. > > Undoing user mistakes is what snapshots were designed for (among > other things). Install zfs-periodic to automate handling a set of hourly, > daily, weekly and monthly snapshots (in /.zfs/snapshot/ with > nice clear names like hourly-2016-11-14-08). Then there's no need to go to > the backups for mistakes, just copy the old version from a suitable snapshot Good idea and a fresh outlook, thank you. > and use send/receive to maintain a near-live disaster recovery copy > (preferably offsite). -- Victor Sudakov, VAS4-RIPE, VAS47-RIPN sip:sudakov@sibptus.tomsk.ru