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. |