From owner-freebsd-fs@freebsd.org Mon Jan 11 21:20:59 2016 Return-Path: Delivered-To: freebsd-fs@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 AD539A6B885 for ; Mon, 11 Jan 2016 21:20:59 +0000 (UTC) (envelope-from paul@kraus-haus.org) Received: from mail-qk0-x22f.google.com (mail-qk0-x22f.google.com [IPv6:2607:f8b0:400d:c09::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 714D21A8E for ; Mon, 11 Jan 2016 21:20:59 +0000 (UTC) (envelope-from paul@kraus-haus.org) Received: by mail-qk0-x22f.google.com with SMTP id n135so231409810qka.2 for ; Mon, 11 Jan 2016 13:20:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kraus-haus-org.20150623.gappssmtp.com; s=20150623; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=l412M7nN5/41pOJc6Aa56yA/nIh/ZD2SBTxrfxuqOKM=; b=uMdc0pSaz17mEn8/xWc9y8gcY9+qWp3BXfyl54jKa/HfAQqlvnYQBnnm6g/M0YhLe+ M9GxV1DRiZh9e8we9rh8e+HkHedl+CQBqzeXbrknnhYBRzf1SHkvpj16JqImx63gGm8Z O1xBB8NaBs3EVyPq6I40/XnfnuoIl8dWW55GekA4CdKP5NkMV6B816vyvuWeOGkilJhM 2uibUtMPLP6/ewuIwtHfsHYaEJ92Q0KmmV7+TE6zU8wtQhJ2WLkvsC6s5P+YY7beDOtH A2PneMvSGdzag0HcdgJ2gr5vPiXkRcAI2Fjb8G4SngRmhx/w6CCNpu/Z8auKNOPphdhx Jj1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:mime-version:content-type:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to; bh=l412M7nN5/41pOJc6Aa56yA/nIh/ZD2SBTxrfxuqOKM=; b=ldWyFrsqrYeOFWi7rDONRSReCPEPViGoB2eEJqsZ1tVjCGwF6qB9163db3SGoP5lgp HLDiFlB55Xfwc+9vGSLX7q85Jij09T5Lc8kB5r9kGvnzBzR0fDrCPz65qHjhD66GU/UJ ZG0SlrPtKqhkgmPSnmyZOhdT+VdIMPf9raBHk9vEFjIbn6kOd7kKcriUSUgtotqgFofg LtmyB7hqPGTm+fIX0N3gSRPU8n1odtVdA8he0iMZZFL0noSGVsVdCUF3z/mAkv0flpaJ RsDGZCMDWZsO/nRiEtDaKGhZOV5uc9F0KNXz6o8wiGIql8swFaXrj8C9ApUyG489nkHS Rzwg== X-Gm-Message-State: ALoCoQlZd8QiEwJk8lijpGKBtJoMpFUvT2fTVk9zcP2DtMbN/Li6duK1I7RUz3d0pCx7zMla2W1MaQnJckoaJ/u+L7JHLW/uRw== X-Received: by 10.55.80.86 with SMTP id e83mr164642787qkb.91.1452547258332; Mon, 11 Jan 2016 13:20:58 -0800 (PST) Received: from mbp-1.thecreativeadvantage.com (mail.thecreativeadvantage.com. [96.236.20.34]) by smtp.gmail.com with ESMTPSA id j67sm47258239qgj.35.2016.01.11.13.20.57 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 11 Jan 2016 13:20:57 -0800 (PST) Subject: Re: Restore only several files from ZFS snapshot without creating copy of them? Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Content-Type: text/plain; charset=us-ascii From: Paul Kraus X-Priority: 3 (Normal) In-Reply-To: <133976260.20160110023807@serebryakov.spb.ru> Date: Mon, 11 Jan 2016 16:20:51 -0500 Cc: FreeBSD Filesystems Content-Transfer-Encoding: quoted-printable Message-Id: References: <133976260.20160110023807@serebryakov.spb.ru> To: lev@FreeBSD.org X-Mailer: Apple Mail (2.1878.6) X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Jan 2016 21:20:59 -0000 On Jan 9, 2016, at 18:38, Lev Serebryakov wrote: > Hello FreeBSD, >=20 > I have a ZFS filesystem, which have daily snapshots. User removed = several > multi-gigabyte files by accident and need to get them back. These = files are > present in old daily snapshots, allright. But as far as I understnad, = if I > do >=20 > cp /fs/.zfs/snapshots/old-snapshot/file /fs/file >=20 > I got TWO copies of this file (one in live filesystem and future = snapshots > and other one in old snapshots). As files in question are = multi-gigabyte > (about 100G alltogether) I don't want such duplication (dedup is = turned off, > as it is very memory-consuming). >=20 > Is it possible to restore these files without such data duplication? Could you leverage a CLONE of the snapshot until such time as other = snapshots of these large files have expired (assuming you are expiring = and destroying old snapshots after a certain amount of time) ? I am = trying to think out of the box here and have to completely thought all = this through.=20 -- Paul Kraus paul@kraus-haus.org