From: Frank Steinmetzger <Warp_7@gmx.de>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Fun with mdadm (Software RAID)
Date: Mon, 30 Dec 2024 05:08:20 +0100 [thread overview]
Message-ID: <Z3IctLatRJ8w_q-K@q> (raw)
In-Reply-To: <20241220220255.9FDA085A435A@turkos.aspodata.se>
Am Fri, Dec 20, 2024 at 11:02:55PM +0100 schrieb karl@aspodata.se:
> Alan Mackenzie:
> ...
> > By the way, do you know an easy way for copying an entire filesystem,
> > such as the root system, but without copying other systems mounted in
> > it? I tried for some while with rsync and various combinations of
> > find's and xargs's, and in the end booted up into the rescue disc to do
> > it. I shouldn't have to do that.
>
> rsync as other people have suggested.
> There is also
> cp -x
> dump/restore
> find -xdev
> etc.
>
> You can also do it by accessing the /dev/-file like
> dd if=source of=dest (cp works here also but dd is more the norm).
>
> ///
>
> When something is mounted on a mount point, the files below the
> mount point is hidden and the mounted filessystem will be available
> instead. Do you want to copy thoose hidden files also ?
To circumnavigate this, I usually bind-mount the filesystem to another
directory first. I usually only do this when I’m dealing with /, as my FS
structure is not complex:
mount --bind / /mnt/bind
rsync -axAHX /mnt/bind/ /path/to/destination/
(-x is not needed then, but it’s part of muscle memory)
--
Grüße | Greetings | Salut | Qapla’
Please do not share anything from, with or about me on any social network.
Keyboard not connected, press F1 to continue.
next prev parent reply other threads:[~2024-12-30 4:13 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-20 10:47 [gentoo-user] Fun with mdadm (Software RAID) Alan Mackenzie
2024-12-20 14:50 ` karl
2024-12-20 15:28 ` Alan Mackenzie
2024-12-20 17:44 ` karl
2024-12-20 20:19 ` Alan Mackenzie
2024-12-20 20:38 ` Hoël Bézier
2024-12-20 20:53 ` Alan Mackenzie
2024-12-20 22:02 ` karl
2024-12-30 4:08 ` Frank Steinmetzger [this message]
2024-12-20 22:02 ` karl
2024-12-21 12:43 ` Alan Mackenzie
2024-12-21 16:36 ` Alan Mackenzie
2024-12-21 16:45 ` karl
2024-12-21 16:58 ` Alan Mackenzie
2024-12-22 13:08 ` Alan Mackenzie
2024-12-22 12:16 ` Wols Lists
2024-12-22 12:08 ` Wols Lists
2024-12-22 12:02 ` Wols Lists
2024-12-22 13:43 ` Alan Mackenzie
2024-12-22 15:29 ` Peter Humphrey
2024-12-22 16:53 ` Wols Lists
2024-12-22 20:05 ` Alan Mackenzie
2024-12-25 21:16 ` Steven Lembark
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Z3IctLatRJ8w_q-K@q \
--to=warp_7@gmx.de \
--cc=gentoo-user@lists.gentoo.org \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox