From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1PXyWE-0000mY-JF for garchives@archives.gentoo.org; Wed, 29 Dec 2010 16:04:54 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 33D4CE073B for ; Wed, 29 Dec 2010 16:04:54 +0000 (UTC) Received: from relay03-haj2.antispameurope.com (relay03-haj2.antispameurope.com [83.246.65.53]) by pigeon.gentoo.org (Postfix) with ESMTP id 11149E030B for ; Wed, 29 Dec 2010 15:38:25 +0000 (UTC) Received: by relay03-haj2.antispameurope.com (ASE-Secure-MTA, from userid 1000) id 321DC63C1A9; Wed, 29 Dec 2010 16:38:24 +0100 (CET) Received: from pluto.fokus.fraunhofer.de (pluto.fokus.fraunhofer.de [195.37.77.164]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by relay03-haj2.antispameurope.com (ASE-Secure-MTA) with ESMTP id 3C2A163C0A1 for ; Wed, 29 Dec 2010 16:38:23 +0100 (CET) Received: from EXCHSRV.fokus.fraunhofer.de (bohr.fokus.fraunhofer.de [10.147.9.231]) by pluto.fokus.fraunhofer.de (8.14.4/8.14.2) with SMTP id oBTFcMQL015957 for ; Wed, 29 Dec 2010 16:38:23 +0100 (MET) Received: from rigel ([10.147.65.195]) by EXCHSRV.fokus.fraunhofer.de with Microsoft SMTPSVC(6.0.3790.4675); Wed, 29 Dec 2010 16:38:22 +0100 Date: Wed, 29 Dec 2010 16:38:22 +0100 From: Joerg.Schilling@fokus.fraunhofer.de (Joerg Schilling) To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Best way to copy /* ? Message-ID: <4d1b55ee.9Eu9QYhU+dbZQSBe%Joerg.Schilling@fokus.fraunhofer.de> References: <20101228133231.522d4d40@digimed.co.uk> <4d1a0fa8.TVuQcBiVBzUKO5TQ%Joerg.Schilling@fokus.fraunhofer.de> <201012281842.13216.michaelkintzios@gmail.com> In-Reply-To: <201012281842.13216.michaelkintzios@gmail.com> User-Agent: nail 11.22 3/20/05 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 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-OriginalArrivalTime: 29 Dec 2010 15:38:22.0781 (UTC) FILETIME=[6D0A16D0:01CBA76E] Content-Transfer-Encoding: quoted-printable X-Archives-Salt: b193f454-2814-4a3e-88d4-6fdd9623a750 X-Archives-Hash: bfe459cc9d4cf72c340b40294273c21e Mick wrote: > or something like this with star: > > star -copy -p -xdot -xattr -H=3Dexustar -sparse -M -C /home . /mnt/new_= partition > > (You can use -V -pat=3DFile1 to exclude files or directories with star,= use the=20 > -M option to avoid following mount points). star -copy by default uses the star "-dump" format which is the "exustar"= =20 format + extended dump metadata. There is no need to specify the archive = format=20 with star -copy. Also note that star by default uses a safe extract method that calls fsyn= c(2)=20 at the end of each single file extract. This is the only way for star for= being=20 able to detect all possible extract problems. On Linux, the file system b= uffer=20 cache is implemented in a very inefficient way and with some COW filesyst= ems=20 (like ZFS), a fsync(2) is an expensive instruction. In such cases, you ma= y call=20 star with the -no-fsync option and switch star to the same level of "safe= ness"=20 as other software to speed up the extract or copy operation. So if you are on Linux and use star -no-fsync, you will not be less secur= e than=20 other software but get aprox. 20% better performance than with other copy= =20 methods. J=F6rg --=20 EMail:joerg@schily.isdn.cs.tu-berlin.de (home) J=F6rg Schilling D-13353 = Berlin js@cs.tu-berlin.de (uni) =20 joerg.schilling@fokus.fraunhofer.de (work) Blog: http://schily.blo= gspot.com/ URL: http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schil= y