Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Jan 2016 02:38:12 +0300
From:      Lev Serebryakov <lev@FreeBSD.org>
To:        FreeBSD Filesystems <freebsd-fs@freebsd.org>
Subject:   Restore only several files from ZFS snapshot without creating copy of them?
Message-ID:  <133976260.20160110023807@serebryakov.spb.ru>

next in thread | raw e-mail | index | archive | help
------------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--




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?133976260.20160110023807>