From owner-freebsd-fs@freebsd.org Mon Jan 11 22:40:24 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 8B2DEA6B81F for ; Mon, 11 Jan 2016 22:40:24 +0000 (UTC) (envelope-from eborisch@gmail.com) Received: from mail-qg0-x232.google.com (mail-qg0-x232.google.com [IPv6:2607:f8b0:400d:c04::232]) (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 5F5B61EF2; Mon, 11 Jan 2016 22:40:24 +0000 (UTC) (envelope-from eborisch@gmail.com) Received: by mail-qg0-x232.google.com with SMTP id 6so336823987qgy.1; Mon, 11 Jan 2016 14:40:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=vRMms0JS0Roc2J6YV+pkyDMo1Yq1yfaLhYQ5eZc5DV0=; b=y3wWh3RKMm5dYqfkbx85UoLVXLPQFWXiTuwjSiXfub3aTTqRcvezFpoCLMc7aTawUG uH23jTlcJpFPFQuYfjOlSnozJ8XeiU23CCi1+HHfrihBLlQAfCm855VotFmEVvGl/kVm XKRAwn47mMg/KDBVIbZT8rRxpEc9u6uI4ksqtRBRYD8JelqIvpctR7pHTJfRl3Ws3nAh kGV2k8pOGndkxExAhI0tdMTOOpJwtPzze7IkqFbpLngSJ1Y7ccrlHwUh/t8wLXjQJNra FJPuOJmLoqSIvhNst1uEQ9DeD+s7w5l8Y1ScKzahU4vhP0/nhDTQ4Xxc6f1ylKCM3585 2ffA== MIME-Version: 1.0 X-Received: by 10.140.98.53 with SMTP id n50mr171772279qge.9.1452552023451; Mon, 11 Jan 2016 14:40:23 -0800 (PST) Received: by 10.55.214.4 with HTTP; Mon, 11 Jan 2016 14:40:23 -0800 (PST) In-Reply-To: <20160111222436.GE88498@neutralgood.org> References: <133976260.20160110023807@serebryakov.spb.ru> <20160111222436.GE88498@neutralgood.org> Date: Mon, 11 Jan 2016 16:40:23 -0600 Message-ID: Subject: Re: Restore only several files from ZFS snapshot without creating copy of them? From: "Eric A. Borisch" To: kpneal@pobox.com Cc: Paul Kraus , FreeBSD Filesystems , lev@freebsd.org Content-Type: text/plain; charset=UTF-8 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 22:40:24 -0000 On Mon, Jan 11, 2016 at 4:24 PM, 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