Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.3 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F173EC47082 for ; Wed, 26 May 2021 15:05:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D0A32613BC for ; Wed, 26 May 2021 15:05:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235123AbhEZPGk (ORCPT ); Wed, 26 May 2021 11:06:40 -0400 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]:56401 "EHLO wout4-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233472AbhEZPGk (ORCPT ); Wed, 26 May 2021 11:06:40 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 8E0B012AE; Wed, 26 May 2021 11:05:08 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Wed, 26 May 2021 11:05:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=georgianit.com; h=subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm3; bh=9 LMcFrI5BFKBUdunFX8RPkJReq/AnmRMaJRUaseC4g4=; b=F6wGHOVrMTqVSwYnC zQFBPxNrVNw4VSKRcuDwmxufR/gGu2Lef3HCYDDXdlm6JXTAr/NtLYEkBi1l723b 4cFEBERVVfh2CgomHPUg7+QZXVgXEFSCnKmOk2REfjm5PMCZsvx6YWgjterB00EK H4cuEE0AO4dzMTQlLYKT7JJZQHekqKKTUT0u4sdaWK18Nitx9mMwTNIFDOrMU+j0 DiE+noBccT3yM7obtkbQpbgMONnOdKvO9Rx0C8tRwcMr4P0vQG+zkkUxg1ErKSob AXn/87stU75DQ1U+G7tLa+h6dWx6XJhZiKAkgVgCnCXUJU69j7niXo0tjjL3xLu9 9n+sQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=9LMcFrI5BFKBUdunFX8RPkJReq/AnmRMaJRUaseC4 g4=; b=RX1FvhRpiiD6P+VxvjyKeMJ61nqBRoZh1SM1gfOh0cJ1MPyKLnGQEAMYC K9A2USYFRwAEmY4qwAXOblAMAQJrQCdGxhTQiQo15IZCLvGTkAWJsZwL9EUUzE5z 68Z11ZlCz2PQRGY2nsXIvjGWJTkjPAhgARtpNbQz/lK6ck+vJrtHaKZqHzV0djsQ UUfRWlQJJsHiN5uqufwadt9LtH5L0MgIY4WqgtcKCRoVbRdeG8C31T4lfsVg4eFJ wYUqFlXIACBY5p1JuzRXNApaPbbxczAIHKlN4DTjgndy34R1Y+dookHKT/2bRm5v cqrbDlQes7KLRSvO5kw9pA46tTfeA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvdekfedgkeegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhkffffgggjggtgfesthejredttdefjeenucfhrhhomheptfgvmhhi ucfirghuvhhinhcuoehrvghmihesghgvohhrghhirghnihhtrdgtohhmqeenucggtffrrg htthgvrhhnpefhgfefuedttdduhfdujeekjeduveeltdduueffhffhueekjeekkeeitdff hfffieenucfkphepudelvddrtddrvdefledrudeftdenucevlhhushhtvghrufhiiigvpe dtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehrvghmihesghgvohhrghhirghnihhtrdgt ohhm X-ME-Proxy: Received: from [10.0.0.6] (192-0-239-130.cpe.teksavvy.com [192.0.239.130]) by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 26 May 2021 11:05:07 -0400 (EDT) Subject: Re: how to rollback / to a snapshot ? To: "Lentes, Bernd" , linux-btrfs References: <2106576727.79893362.1622034311642.JavaMail.zimbra@helmholtz-muenchen.de> <97e08f6c-1177-49f8-a05b-5f2917a77fb2@georgianit.com> <1608188083.80084937.1622040829715.JavaMail.zimbra@helmholtz-muenchen.de> From: Remi Gauvin Message-ID: Date: Wed, 26 May 2021 11:05:07 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <1608188083.80084937.1622040829715.JavaMail.zimbra@helmholtz-muenchen.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org On 2021-05-26 10:53 a.m., Lentes, Bernd wrote: >> >> mv /mnt/sub/root-volume/@bad/var/lib/docker/btrfs >> /mnt/sub/root-volume/@/var/lib/docker/btrfs >> >> You need to repeat this for any other subvolumes found in the first sub >> list command. > > OK. What is their purpose ? The snapshot of a subvolume does not contain any other subvolumes. So if you are replacing root from a snapshot, any of the other subvolumes that were within root have to be moved from the old to the new.