[geeks] Quickest way

N. Miller vraptor at promessage.com
Wed Oct 8 14:53:22 CDT 2003


--On Wednesday, October 08, 2003 2:16 PM -0400 Phil Stracchino 
<alaric at caerllewys.net> wrote:

> On Wed, Oct 08, 2003 at 01:37:42PM -0400, Andrew Weiss wrote:
>> What is the quickest way to move a bunch of files from /opt/sfw to
>> /usr/sfw on two separate partitions preserving all permissions in
>> Solaris 9.  For some reason I seem to think cp will crash and tar won't
>> quite work.  Do I need dump/restore?
>
> Why would cp crash, and what is tar doing incorrectly?
>
> You could cp -a /opt/sfw /usr/sfw, or you could:
>
> cd /opt; tar cvpf - sfw | (cd /usr ; tar xvpf - )
>
> In what respect do these not work?

Stock tar under Solaris has a problem with depth if I
recall correctly.

Personally, I'd use rsync for this.

=Nadine=



More information about the geeks mailing list