unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Théo Maxime Tyburn" <theo.tyburn@gmail.com>
To: Tobias Geerinckx-Rice <me@tobias.gr>
Cc: Kaelyn <kaelyn.alexi@protonmail.com>,
	Giovanni Biscuolo <g@xelera.eu>,
	guix-devel@gnu.org
Subject: Re: Move /gnu/store to another filesystem
Date: Fri, 27 May 2022 15:56:03 +0200	[thread overview]
Message-ID: <87k0a7136b.fsf@gmail.com> (raw)
In-Reply-To: <87v8trurzp@nckx>

Hi Tobias,

Tobias Geerinckx-Rice <me@tobias.gr> writes:

> However, ‘cp -p’ does not preserve everything, including hard links.
> Applications shouldn't care but you might be surprised at how much
> disc space hard links save on my system:
>
> ~ λ du -hs /gnu/store
> 86G	/gnu/store
> ~ λ du -hs --count-links /gnu/store
> 192G	/gnu/store
>
> I was!

Wow!

> ‘cp -a’ should preserve hard links but I personally recommend using
> rsync instead, with a paranoid helping of -aHAX flags. Unlike cp, it's
> resumable, which is nice when copying 100s of gigabytes.

Yes I wasn’t sure if keeping links could not break something. But I
guess it shouldn’t harm since after mounting everything will have the
same place on the filesystem.

I agree that rsync -aHAX seems a much better option. I would have
resorted to that if things kept breaking with cp. That’s what I meant by
"just using cp is a bit brutal". I wasn’t sure which of
the uncountable options of rsync to use though ^^

> Kind regards,
>
> T G-R

Thanks for the feedback,

Théo


      parent reply	other threads:[~2022-05-27 14:16 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-25 16:56 Move /gnu/store to another filesystem Théo Maxime Tyburn
2022-05-26 10:28 ` Giovanni Biscuolo
2022-05-26 10:44   ` Théo Maxime Tyburn
2022-05-26 16:24     ` Kaelyn
2022-05-26 19:48       ` Théo Maxime Tyburn
2022-05-27  5:56         ` Giovanni Biscuolo
2022-05-27  9:34           ` Théo Maxime Tyburn
2022-05-27 11:08           ` Théo Maxime Tyburn
2022-05-27 12:48             ` Giovanni Biscuolo
2022-05-27 14:12               ` Théo Maxime Tyburn
2022-05-27 15:55                 ` Giovanni Biscuolo
2022-05-27 16:37                   ` Théo Maxime Tyburn
2022-05-27 11:28         ` Tobias Geerinckx-Rice
2022-05-27 11:37           ` Tobias Geerinckx-Rice
2022-05-27 14:09             ` Théo Maxime Tyburn
2022-05-27 13:56           ` Théo Maxime Tyburn [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87k0a7136b.fsf@gmail.com \
    --to=theo.tyburn@gmail.com \
    --cc=g@xelera.eu \
    --cc=guix-devel@gnu.org \
    --cc=kaelyn.alexi@protonmail.com \
    --cc=me@tobias.gr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).