From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.43) id 1E12gK-0007ry-Lv for garchives@archives.gentoo.org; Fri, 05 Aug 2005 13:56:17 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.4/8.13.4) with SMTP id j75Draxf004691; Fri, 5 Aug 2005 13:53:36 GMT Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.206]) by robin.gentoo.org (8.13.4/8.13.4) with ESMTP id j75DmJ2r020499 for ; Fri, 5 Aug 2005 13:48:20 GMT Received: by zproxy.gmail.com with SMTP id v1so402347nzb for ; Fri, 05 Aug 2005 06:49:11 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=nvfgbjRXsDIjVdxXvPEYqe6ZdOSGiWowaWm64mqYkQzK9MhHv1lz4j9npc0vCmGIOcgT0aekS8JU/xofO9au5OLbgoS4WGmLljQwSKWp1DKzkzwdlnrhuTi37zflD+FbrRXt9zTr9scQGgbHPWITtTO8J4OkDYo/NOAKk4awV8g= Received: by 10.36.224.6 with SMTP id w6mr1506837nzg; Fri, 05 Aug 2005 06:49:11 -0700 (PDT) Received: by 10.36.101.11 with HTTP; Fri, 5 Aug 2005 06:49:11 -0700 (PDT) Message-ID: <3212b1a8050805064977269069@mail.gmail.com> Date: Fri, 5 Aug 2005 15:49:11 +0200 From: Andreas Fredriksson To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Copying contents /boot from /dev/hdb1 to /dev/hda2 In-Reply-To: <200507281706.09015.sean@systura.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Disposition: inline References: <000001c592aa$3d2ca9c0$0400a8c0@ECRM> <200507272024.46849.sean@systura.com> <20050728091237.12493d1a@hactar.digimed.co.uk> <200507281706.09015.sean@systura.com> Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by robin.gentoo.org id j75DmJ2r020499 X-Archives-Salt: b6df3d02-9c80-4981-b5c0-0833240bd4ac X-Archives-Hash: 3ceaebe5a79628c067b5e93afcccbd2f On 7/28/05, Sean Higgins wrote: > > > tar cvf - * | tar xf -C ../new/ > > > > * doesn't match hidden files, so the copy will be incomplete. > > Neil, > > Interesting. I had not thought about that. I did use the above to recreate > my hard drive from one hard drive to another one. It worked well, I guess I > lucked out that I did not have any hidden files in the "old" directory. A better option is to use . (dot) a the directory. Also adding -p to preserve permissions is essential when backing up a whole system: tar cfp - . | (cd /target/path && tar xvfp -) Regards, Andreas -- And I hate redundancy, and having different functions for the same thing. - Linus Torvalds on linux-kernel -- gentoo-user@gentoo.org mailing list