Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Jan 2016 16:40:23 -0600
From:      "Eric A. Borisch" <eborisch@gmail.com>
To:        kpneal@pobox.com
Cc:        Paul Kraus <paul@kraus-haus.org>, FreeBSD Filesystems <freebsd-fs@freebsd.org>, lev@freebsd.org
Subject:   Re: Restore only several files from ZFS snapshot without creating copy of them?
Message-ID:  <CAASnNno3p%2BaOXLqOTMVigbQU0Zde96scZU%2BV5%2B%2Bm03drtdmMmQ@mail.gmail.com>
In-Reply-To: <20160111222436.GE88498@neutralgood.org>
References:  <133976260.20160110023807@serebryakov.spb.ru> <C6068E3B-39EA-44FF-A8E6-E8067E51DE63@kraus-haus.org> <CAASnNnpGPoqQjNthvSKBkpEpkTW5wBSY_1OK8Sux0cCYdmByZA@mail.gmail.com> <20160111222436.GE88498@neutralgood.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jan 11, 2016 at 4:24 PM,  <kpneal@pobox.com> wrote:
> But can a clone be promoted to the "head" of a dataset? I thought a clone
> was always backed by a snapshot. The goal as I understood it was to get
> the files back into the normal dataset.

>From man zfs:

 zfs promote clone-filesystem

         Promotes a clone file system to no longer be dependent on its "ori-
         gin" snapshot. This makes it possible to destroy the file system that
         the clone was created from. The clone parent-child dependency rela-
         tionship is reversed, so that the origin file system becomes a clone
         of the specified file system.

What you will lose in the process is the snapshot history between the
'pre whoops' snapshot and 'now.' (After recreating the state of 'now'
in the clone of 'pre whoops' (less the accidental removals) via rsync,
for example.)

  - Eric



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAASnNno3p%2BaOXLqOTMVigbQU0Zde96scZU%2BV5%2B%2Bm03drtdmMmQ>