[1116] in RedHat Linux List

home help back first fref pref prev next nref lref last post

Re: moving contents of hard drive

daemon@ATHENA.MIT.EDU (Info junkie)
Sat Oct 26 14:49:20 1996

Date: Sat, 26 Oct 1996 10:51:06 -0400 (EDT)
From: Info junkie <junkie@glcom.com>
To: redhat-list@redhat.com
In-Reply-To: <32719158.6097F783@iceonline.com>
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com



On Fri, 25 Oct 1996, BORG wrote:

> Andy Lindeman wrote:
> > 
> > Hello-
> > 
> > I remember a thread about this from summer, but after a half hour
> > searching the archives, gave up...
> > 
> > Anyway, I'm moving the contents of my hard drive to a new one.  What
> > switches do I need to use with cp?  Was there anything else I need to
> > watch out for?
> 
> I'd do it like this:
> 
> 1. Booted from a bootdisk or RH CDROM...
> 
> 2. Mount one drive under /source
> 
> 3. Mount another drive under /target
> 
> 4. Issue this command:
> 
> cp -af /source /target
> 

I'll probably go with cp -dRp /source /target

-d maintain any symlinks
-R do it recursively
-p retain permissions and all other attributes.


cheers
jamal


--
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
  ________________________________________________________________________
  http://www.redhat.com/RedHat-FAQ   http://www.redhat.com/RedHat-Errata
  http://www.redhat.com/RedHat-Tips  http://www.redhat.com/mailing-lists
  ------------------------------------------------------------------------
To unsubscribe: mail -s unsubscribe redhat-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post