|
VK7AX > LINHAM 30.12.07 23:12l 68 Lines 2535 Bytes #999 (0) @ VKNET
BID : VK7AX-1012LK
Read: GUEST
Subj: Re: Cloning Hard drives
Path: IZ3LSV<IW2OAZ<CX2SA<ZL2BAU<VK7NW
Sent: 071210/0036Z @:VK7NW.#ULV.TAS.AUS.OC #:31908 [NWTARIG] FBB7.00g $:VK7AX-1
From: VK7AX@VK7NW.#ULV.TAS.AUS.OC
To : LINHAM@VKNET
From: "Jeff Laughlin" <jeff.laughlin@gmail.com>
Date: Sun, 9 Dec 2007 13:14:33 -0800
To: linux-hams@vger.kernel.org
Also if you are trying to tar up your whole system you shouldn't tar
/proc or /sys since they aren't real directories. There may be other
directories you want to omit, like stuff in /var, /tmp, it varies from
distro to distro.
Also bear in mind some things can't be safely backed up at all without
additional steps, like databases.
I really like the book "Practical UNIX Internet and Security" for it's
extensive discussion of backups and disaster recovery.
http://www.oreilly.com/catalog/puis/
On Dec 9, 2007 1:11 PM, Jeff Laughlin <jeff.laughlin@gmail.com> wrote:
> > AFAIK there is nothing exactly like Ghost for Linux, at least not yet.
> > Last I checked there were some alpha projects. They could me more
> > mature by now...
> >
> > The dd command can copy an entire hard drive or a single partition
> > byte for byte. It's not as flexable as ghost however. It knows nothing
> > about the size or partitioning of the hard drive and will also copy
> > all of the empty blocks, so you can only restore a dd image to a
> > drive/partition of the same or larger size, and if it's larger you
> > will not be able to access the extra space.
> >
> > dd if=/dev/hda of=hdaimage bs=10M
> >
> > This will create an image of the entire hda drive including all
> > partitions in the file hdaimage in the current directory (don't create
> > this file on hda obviously). The bs makes dd copy 10 meg chunks at a
> > time, greatly speeding up the copy.
> >
> > dd if=/dev/hda1 of=hda1image bs=10M
> >
> > This will create an image of just the first partition on hda. man dd
> > for more info.
> >
> > Tar works perfectly for copying a single partition. It captures all of
> > the file system metadata. If you are using SE Linux you need to make
> > sure you are using a version of Tar that captures SE Linux info and
> > you may need to pass a command line switch to turn it on. Of course if
> > you are trying to restore a system from tarballs you will have to
> > partition and format by hand first and then restore each tarball for
> > each partition.
> >
> > I'm confused about tarring /dev. It used to be that /dev was a normal
> > folder with normal files. Then came devfs and now udev. I think some
> > of the files in /dev are created at boot by the kernel and maybe some
> > are real or something, I'm not sure.
> > --
> > 73 de n1ywb
-- 73 de n1ywb
Read previous mail | Read next mail
| |