Re: ZFS backups: retrieving a few files?

看板FB_stable作者時間15年前 (2010/11/24 07:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串13/16 (看更多)
--+HP7ph2BbKc20aGI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2010-Nov-23 23:45:43 +1100, Andrew Reilly <areilly@bigpond.net.au> wrote: >zfs send -vR tank/home@0 | zfs receive -d /backup/snapshots > >in order to experiment with this strategy. > >One would then become alarmed when one discovered that the >receive mechanism also invoked the mountpoint=3D parameter of the >source filesystem, and the zfs propensity for just doing stuff, >and boom: you have a read-only version of your home directory >mounted *on top of* your actual home directory... Been there, done that. The undocumented '-u' option to receive will prevent the receive side performing mounts. The poorly documented '-R' option on import allows you to specify an alternative root mountpoint. Once you have done the initial transfer, you can also set 'canmount=3Dnoauto' on each fileset (it isn't inherited) to prevent ZFS automounting them on import. BTW, the entire export is performed at the current compression level - recompressing existing data. --=20 Peter Jeremy --+HP7ph2BbKc20aGI Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.15 (FreeBSD) iEYEARECAAYFAkzsFrcACgkQ/opHv/APuIfWZACfbG3bUPC39dRq7lRCWgaU4aZV D5kAoMSDKPvd4bvoYtJE68VOQ+lC7gli =NnUI -----END PGP SIGNATURE----- --+HP7ph2BbKc20aGI--
文章代碼(AID): #1Cx4xqH7 (FB_stable)
討論串 (同標題文章)
文章代碼(AID): #1Cx4xqH7 (FB_stable)