1 |
On Freitag 14 August 2009, Nikos Chantziaras wrote: |
2 |
> On 08/14/2009 05:47 AM, meino.cramer@×××.de wrote: |
3 |
> > Hi, |
4 |
> > |
5 |
> > I am looking for a faster way to do a |
6 |
> > |
7 |
> > cp -a r<thisdir> <thatdir> |
8 |
> > |
9 |
> > locally on one machine with one harddisk inside. |
10 |
> > |
11 |
> > Is there a neat trick to accomplish this faster than |
12 |
> > good old cp? |
13 |
> |
14 |
> Nope. Some people like to use pipes in hope to speed it up, something |
15 |
> like: |
16 |
> |
17 |
> tar -c <thisdir> | tar -xC <thatdir> |
18 |
> |
19 |
> but this isn't really faster and fscks up sparse files. |
20 |
> |
21 |
> But if <thatdir> already contains some files from <thisdir>, then rsync |
22 |
> would be faster than cp. If not, stick with cp. |
23 |
|
24 |
use cp with -u and files already existing are skipped. |