[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Wild backup Idea
On Tue, Jan 25, 2000 at 05:37:13PM +0200, I wrote:
> >Can I do from linux partion "dd if=/dev/hda of=hda.img" and then put
> > it back with "dd if=hda.img of=/dev/hda" ?
>
> Yes.
What I forgot to write, though, was this:
/dev/hda is of course your entire primary master IDE disk. If your
first disk is shared with linux, you almost certainly want something
like /dev/hda1 (or hda2, etc.). If you only have one disk, trying to
put an image of it on a file on that same disk won't work.
This also answers your question about the size of the output file:
it will be as big as the device read from. A 80MB disk will yeild
a 80MB file. You can, however, do this:
dd if=/dev/hda1 | gzip -c > hda1.img.gz
Or, if you want to backup via the network, you can
dd if=/dev/hda1 | nc backup-machine 12321
on one machine and
nc -l -p 12321 | dd of=hda1.img
on another.
Another thing you can do is search the list archive for a thread
that already talked about this a while ago, as it discussed some
more creative uses of this chicanery.
--
believing is seeing
gaal@forum2.org
http://www.forum2.org/gaal/
=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il