From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 0A4lC3i7P2CPUgAA0tVLHw (envelope-from ) for ; Wed, 03 Mar 2021 16:38:16 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 2KbeBni7P2CRWgAA1q6Kng (envelope-from ) for ; Wed, 03 Mar 2021 16:38:16 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 28CDE1EEEF for ; Wed, 3 Mar 2021 17:38:15 +0100 (CET) Received: from localhost ([::1]:58086 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lHUVo-0000ue-Sa for larch@yhetil.org; Wed, 03 Mar 2021 11:38:12 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:49114) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lHUVc-0000s7-8q for help-guix@gnu.org; Wed, 03 Mar 2021 11:38:00 -0500 Received: from tobias.gr ([2a02:c205:2020:6054::1]:59180) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lHUVa-0006M3-5x for help-guix@gnu.org; Wed, 03 Mar 2021 11:37:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tobias.gr; s=2018; bh=x6fOWz/yNrhqLdlmdvIxy2gIvagPiUXQsJn9KZqPpyw=; h=date:in-reply-to: references:subject:cc:to:from; b=fEu/UBNSVVtyEsDY/0kBnwZMq8YvfDgpj1zK7 yEUX7o/2kVne3USlv8HBoBysXxy05xWVugkEFKatwE40rjz/nBPiWrOjWCIqV9opvda+GJ uJqhHe3hotcZ/ZNXpwc1JqlN9ot3xF/tRB6vRHdKiRkVIqxkjTpoUiDnxX6YXHSgIe/xWI zbGyTwM5OtCzRDCN3v71R2H+LypVweCdGeYRytdS2fYTkT8w5DJgXe4ZwUn+LreiJ5VREB bPXkT92czjwEEE2Qu5wgFGkWxDaxPdbAjLEdRbVWl4CrPHJEPPwupAl5D5WHTKF8SgJ0fv ZdH6qHDMtK/ZVmkzsCve4Zf8g== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id c063e9c4 (TLSv1.2:ECDHE-ECDSA-AES256-GCM-SHA384:256:NO); Wed, 3 Mar 2021 16:38:48 +0000 (UTC) BIMI-Selector: v=BIMI1; s=default; From: Tobias Geerinckx-Rice To: Phil Cc: help-guix@gnu.org Subject: Re: Moving /gnu/store safely? References: <85mtvkmjvr.fsf@beadling.co.uk> In-reply-to: <85mtvkmjvr.fsf@beadling.co.uk> Message-ID: <878s74yyyy.fsf@nckx> Date: Wed, 03 Mar 2021 17:38:13 +0100 MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: pass client-ip=2a02:c205:2020:6054::1; envelope-from=me@tobias.gr; helo=tobias.gr X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1614789495; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=x6fOWz/yNrhqLdlmdvIxy2gIvagPiUXQsJn9KZqPpyw=; b=FOdlx7UoOcsJZ5bdcwGdsuaLyAhP9SbZ+2uwg38ZJff7fpuQ4ZuOjLVFFU3OaS7pxvQZ40 vFWRZ0JSYCYPo7c7oXTrjT1U/Mfs9AxwPLklMW7g/WzNGkR3dn9t/cE7C2kAkgFcQKb7oq 5tBWLxWxiMs1iLPKyGXeTm7bjKN8p7SswXuyr872nv0Q4p+03hJ+bsGM3tZByncp1MpYHr LzuJ1eFiqVDBBmtzAw2x0NDPOq/yo6xNZ/ME8TYQd1UkL0dgIWahJx/yp5niuUwq+9bSCB jcfNO5ikErMkksGeQD7Y5tZmBG29E1BkHX5hFM+92ISIYOvXOS905C04EaBMHg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1614789495; a=rsa-sha256; cv=none; b=c071OuhltmKUzpkOryzRU6vSFiu+zYc5iYiPR40zt+UBCeyv9onaYXK/IhrWLn6HosLyqN k9dPyYOBRl/lbxxZZdClPblzjwV1g627/G7atWA+yhYqVZYjTxN/AnZ1TgeJRI0eUT/se5 qjHAP/Oo1bLH8elSnyK5nzV3+BC6U4BGxe+EAXDXl3YAK6Khvjfk15hfgxA7rpmLF8zYsY SfxzhGgwUwi7nBGKcjJxB1GJB/S2Y/44z3xjHBVbkcw72zzZ1br8rla6p6sSpSFk8Y9Ef1 dbSB/45n0W+Ih5M/2jYNB5jnPw1wK1Q8Dw4tTazF01txhoPBXp+ZWyx2jnnk6g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=tobias.gr header.s=2018 header.b="fEu/UBNS"; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Spam-Score: -3.66 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=tobias.gr header.s=2018 header.b="fEu/UBNS"; dmarc=pass (policy=reject) header.from=tobias.gr; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: 28CDE1EEEF X-Spam-Score: -3.66 X-Migadu-Scanner: scn1.migadu.com X-TUID: pfqKdY1HNyOo --=-=-= Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Phil, Barring unnoticed devils in details your process looks safe.=20 Running =E2=80=98guix gc --verify=E2=80=99 is a good idea; add=20 =E2=80=98=3Drepair[,contents]=E2=80=99 if you're paranoid. Phil =E5=86=99=E9=81=93=EF=BC=9A > There were some gremlins tho - on restarting Guix the /gnu/store=20 > was > seen to grow to approximately double it's size. [...] > rsync -va /gnu/store /some_other_disk/gnu/ As gremlin's go this one is pretty tame, even cuddly: the Guix=20 daemon deduplicates identical files, and creates hard links=20 instead, saving a good amount of space. That's all. By default, rsync does not preserve hard links (because of=20 potential pathological performance issues, IIRC). This won't=20 break /gnu/store: indentical files are still identical, they just=20 take up more space. To preserve them, you can use: -H, --hard-links This tells rsync to look for hard-linked files in the source and link together the corresponding files on the destination. Without this option, hard-linked files in the source are treated as though they were separate files. (I add =E2=80=99-HAX=E2=80=99 as a matter of habit when making full-system= =20 back-ups.) > I noted however that the new /gnu/store was approx double in=20 > size - it > looked like it had created new links to represent store items. No, the links were *lost* and replaced by separate files during=20 rsyncing. Kind regards, T G-R --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIMEARYKACsWIQT12iAyS4c9C3o4dnINsP+IT1VteQUCYD+7dg0cbWVAdG9iaWFz LmdyAAoJEA2w/4hPVW158I8BAI9hBaXPAJ4XKAZB6poChuFopSZ7VPSrFBtB049L sdMAAQCsNWcGoEJ3RTG7LorPsr1+oXZhEo8RfQMZ3vl2jABECQ== =ITu7 -----END PGP SIGNATURE----- --=-=-=--