On Tue, Jan 12, 2016 at 2:29 PM, Andreas Enge <andr...@enge.fr> wrote:

> On Tue, Jan 12, 2016 at 01:39:02PM -0800, carl hansen wrote:
> > I forsee problems when copying /gnu, not reproducing hard links
> > but reproducing the data.
>
> You can use rsync with the option "-H" to preserve hard links.
>
> I think your proposed solution with bind mounts will work, but I let
> the specialists confirm.
>
> Andreas
>
> Thanks, Andreas and Leo, the

rsync -Hav /gnu/ /directoryondifferentdisk/gnu
rm -rf /gnu
mkdir /gnu

mount --bind /directoryondifferentdisk/gnu /gnu

seems to be working perfectly.

I hope this question and answer is put into GUIX faq somehow.

Reply via email to