Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Feb 2000 12:05:00 +1100
From:      "Lachlan O'Dea" <lodea@vet.com.au>
To:        Erik Wenzel <erik@todo.de>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: why is cp so slow?
Message-ID:  <20000215120459.A44286@vet.com.au>
In-Reply-To: <20000214125652.A25174@todo.de>; from erik@todo.de on Mon, Feb 14, 2000 at 12:56:52PM %2B0100
References:  <20000214125652.A25174@todo.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Feb 14, 2000 at 12:56:52PM +0100, Erik Wenzel wrote:
> Hi All,
> 
> why is moving /usr/ports to another Partition taking over 1/2 hour?
> That's only 4MB. I am using freebsd-stable-2.2.7.

It's because there are so many directories and small files in that 4 Mb.
I don't think 2.2 has softupdates, so that won't help. I often use
cpio(1) for this kind of thing, which generally is faster than cp:

$ cd /usr/ports
$ find . -depth -print0 | cpio -0pvd /new/directory

I believe you can achieve a similar effect with tar as well.

-- 
Lachlan O'Dea <mailto:lodea@vet.com.au>   Computer Associates Pty Ltd
Webmaster                                   Vet - Anti-Virus Software
http://www.vet.com.au/

"You have controlled your fear...
now release your anger." - Darth Vader



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000215120459.A44286>