Gentoo Archives: gentoo-user

From: Nikos Chantziaras <realnc@×××××.de>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: [OT] fast recursive local copy
Date: Fri, 14 Aug 2009 03:42:08
Message-Id: h62mdn$84o$1@ger.gmane.org
In Reply to: [gentoo-user] [OT] fast recursive local copy by meino.cramer@gmx.de
1 On 08/14/2009 05:47 AM, meino.cramer@×××.de wrote:
2 > Hi,
3 >
4 > I am looking for a faster way to do a
5 >
6 > cp -a r<thisdir> <thatdir>
7 >
8 > locally on one machine with one harddisk inside.
9 >
10 > Is there a neat trick to accomplish this faster than
11 > good old cp?
12
13 Nope. Some people like to use pipes in hope to speed it up, something like:
14
15 tar -c <thisdir> | tar -xC <thatdir>
16
17 but this isn't really faster and fscks up sparse files.
18
19 But if <thatdir> already contains some files from <thisdir>, then rsync
20 would be faster than cp. If not, stick with cp.

Replies

Subject Author
Re: [gentoo-user] Re: [OT] fast recursive local copy Volker Armin Hemmann <volkerarmin@××××××××××.com>
Re: [gentoo-user] Re: [OT] fast recursive local copy Joerg.Schilling@fokus.fraunhofer.de (Joerg Schilling)