From owner-freebsd-questions Wed Jun 24 23:51:14 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id XAA06547 for freebsd-questions-outgoing; Wed, 24 Jun 1998 23:51:14 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from lucy.bedford.net (lucy.bedford.net [206.99.145.54]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id XAA06531 for ; Wed, 24 Jun 1998 23:50:58 -0700 (PDT) (envelope-from listread@lucy.bedford.net) Received: (from listread@localhost) by lucy.bedford.net (8.8.8/8.8.8) id CAA06960; Thu, 25 Jun 1998 02:50:45 -0400 (EDT) (envelope-from listread) Message-Id: <199806250650.CAA06960@lucy.bedford.net> Subject: Re: copying/duplicating disks: replacing IDE with scsi In-Reply-To: <19980625133521.29606@welearn.com.au> from Sue Blake at "Jun 25, 98 01:35:21 pm" To: sue@welearn.com.au (Sue Blake) Date: Thu, 25 Jun 1998 02:50:44 -0400 (EDT) Cc: dwhite@resnet.uoregon.edu, zula@distance.net, freebsd-questions@FreeBSD.ORG X-no-archive: yes Reply-to: djv@bedford.net From: CyberPeasant X-Mailer: ELM [version 2.4ME+ PL38 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Sue Blake wrote: > On Wed, Jun 24, 1998 at 06:49:31PM -0700, Doug White wrote: > > On Tue, 23 Jun 1998, RPD wrote: > > > > > I have just added a scsi drive to my system, is there a way to cp > > > everything from my IDE drive to my SCSI drive. Basicly looking to just > > > duplicate everything from my IDE drive to my SCSI drive and take my IDE > > > drive right out of the box. Any information would help. > > > > cp -p -R /disk1 /disk2 > > > > -R is recursively copy, -p is preserve permissions. > > So why is copying sometimes done with tar instead of cp? Well, tradition. These are new (I think) features to cp. Tar produces an archive, i.e. a single file, as output, thus suiting it for writing to character devices, like tapes. Also, tar has lots of swell switches to play with. Cpio (ATT's answer to tar, i.e. a SysV program) is yet another option. This is part of the Joy of Unix -- several subtly incompatible ways of doing the same thing. Makes for variety. Like shells and text editors. Dave -- http://www.microsoft.com/security: `Microsoft Windows NT Server is the most secure network operating system available.' Don Quixote: `You are mistaken, Sancho.' To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message