From owner-freebsd-fs@freebsd.org Sat Jan 9 23:38:22 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 A833AA698F8 for ; Sat, 9 Jan 2016 23:38:22 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [46.4.40.135]) by mx1.freebsd.org (Postfix) with ESMTP id 73DCA1D72 for ; Sat, 9 Jan 2016 23:38:22 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from lion.home.serebryakov.spb.ru (unknown [IPv6:2001:470:923f:1:88ce:dbff:dc03:12da]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPSA id 69F517231 for ; Sun, 10 Jan 2016 02:38:20 +0300 (MSK) Date: Sun, 10 Jan 2016 02:38:12 +0300 From: Lev Serebryakov Reply-To: lev@FreeBSD.org Organization: FreeBSD X-Priority: 3 (Normal) Message-ID: <133976260.20160110023807@serebryakov.spb.ru> To: FreeBSD Filesystems Subject: Restore only several files from ZFS snapshot without creating copy of them? MIME-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="pgp-sha512"; boundary="----------0E91DF09008489B3C" 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: Sat, 09 Jan 2016 23:38:22 -0000 ------------0E91DF09008489B3C Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Hello FreeBSD, 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 cp /fs/.zfs/snapshots/old-snapshot/file /fs/file I got TWO copies of this file (one in live filesystem and future snapsho= ts 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). Is it possible to restore these files without such data duplication? I could not rollback whole FS to old snapshot, as here was other changes to it after files removal. --=20 Best regards, Lev mailto:lev@FreeBSD.org ------------0E91DF09008489B3C Content-Type: application/pgp-signature -----BEGIN PGP MESSAGE----- Version: GnuPG v2.0.22 (MingW32) iQJ8BAEBCgBmBQJWkZnkXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRGOTZEMUNBMEI1RjQzMThCNjc0QjMzMEFF QUIwM0M1OEJGREM0NzhGAAoJEOqwPFi/3EePmrkP/1YUqUkqFX5twZ0x0Oej5ekr X/n31zHx31VNbJrMQjFZKMEJh/wDsGq8TTVKgdb1IlhuX+SgwNFpGgdnbLELyBZJ HWyOtBsNjZvRePCAZsQUEPO+uMLEUIkMYoZY/KlwaW8QGhTMr8lPl8oTA0cR0DiN Rp0lfyCKlK9rYMgqivDrVh8iX1Cn2VHLGXPU8B8erYTIFJ9ogTnZJkcBuT0qp468 rMNN28e5qXRmajS7gepKoq3O2n5uoAGYWOgumsyowM3FebBtue8hX1yLvItCEn8d q38ISw+iUQ6i54lgFU1sOmiMg03r9/5sq01R+s9Rjqdze7YNHHOuM22B9fSh0Ll7 aPwNe7wMZEUgWiUa7Oa61G6gmlpUhmAB8lTK2+kt/h/Ets1oP/f+DnC7SDXoE5yj xcSUFkyUf6FRbRBDI8TDBYZ49gU7iHJXJMGSab524bVSUz3itCOkYysGwCrfGaXu Ouk/OZyuB8GuHIr8cvkc6EbfNX5Et14Myq5bQMIClzRn3rNBxOXT7EKpkQwMyC8o bWU+RX1pTRTQkiyubkFQ80UPZM91+nJe+LfZIJaKtS4nEOKnmHI8H6VwBFntxg2M Ehz9cjc3XZKOuPdkXew20AClLbH0ZKkwZOVtqiLROaTzlEwAbhA9A0Jv7G3mgXM8 uEoJTrJEsR6d46xx0ztO =+3Un -----END PGP MESSAGE----- ------------0E91DF09008489B3C--