From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 6E49015802C for ; Fri, 20 Dec 2024 22:03:21 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 88312E08B1; Fri, 20 Dec 2024 22:03:13 +0000 (UTC) Received: from turkos.aspodata.se (turkos.aspodata.se [185.140.117.226]) by pigeon.gentoo.org (Postfix) with ESMTP id A1291E0844 for ; Fri, 20 Dec 2024 22:03:12 +0000 (UTC) Received: from turkos.aspodata.se (localhost.aspodata.se [127.0.0.1]) by turkos.aspodata.se (Postfix) with ESMTP id BC2FF85A4352 for ; Fri, 20 Dec 2024 23:02:55 +0100 (CET) Received: by turkos.aspodata.se (Postfix, from userid 1000) id 9FDA085A435A; Fri, 20 Dec 2024 23:02:55 +0100 (CET) X-Mailer: exmh version 2.8.0 04/21/2012 with nmh-1.7+dev X-Exmh-Isig-CompType: repl X-Exmh-Isig-Folder: inbox From: karl@aspodata.se To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Fun with mdadm (Software RAID) In-reply-to: References: <20241220145053.B361C85A435A@turkos.aspodata.se> <20241220174453.4E33285A435A@turkos.aspodata.se> Comments: In-reply-to Alan Mackenzie message dated "Fri, 20 Dec 2024 20:19:55 +0000." Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply Mime-Version: 1.0 Content-Type: text/plain Message-Id: <20241220220255.9FDA085A435A@turkos.aspodata.se> Date: Fri, 20 Dec 2024 23:02:55 +0100 (CET) X-Virus-Scanned: ClamAV using ClamSMTP X-Archives-Salt: 08bc510e-fe61-4886-9451-f5eb83a3fb5e X-Archives-Hash: ab7b8a8d8cb3d8066ee8003975ac1848 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 ? Regards, /Karl Hammar