[1204] 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 (Jon Klaren)
Sun Oct 27 01:09:37 1996

Date: Sat, 26 Oct 1996 22:08:04 -0700
From: Jon Klaren <jklaren@qualcomm.com>
To: redhat-list@redhat.com
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com

Paul Anderson wrote:
> 
> BORG wrote:
> >
> > Info junkie wrote:
> > >
> > > I'll probably go with cp -dRp /source /target
> > >
> > > -d maintain any symlinks
> > > -R do it recursively
> > > -p retain permissions and all other attributes.
> >
> > This is exactly the same as cp -a.
> >
> > Regards,
> > Vlad
> >
> Just to weigh in on this long running cp debate....cp does not always
> get every file.  At least this has been my experience.  I like the
> surety of using dd to copy drives.
> 
> Paul Aanderson

My favorite:
# cd /srcdir
# find . -xdev -print | grep -v "lost+found" | cpio -padvmu /destdir
doesn't cross filesystems, ignores lost+found, copies symlinks, devices
etc. intact.

Hey Donnie,
This "how do I copy a whole drive" is such a FAQ.  Any chance you
could add it to the FAQ. (Like you don't have anything else to do ;-)

-Jon
Jon Klaren
San Diego, CA USA
jklaren@qualcomm.com


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