View previous topic :: View next topic |
Author |
Message |
Headhunter n00b
Joined: 20 Sep 2002 Posts: 40
|
Posted: Wed Dec 24, 2003 3:19 pm Post subject: Back up my gentoo system!! |
|
|
Hmm I think my gentoo distro is working fine now, but the problem is, it takes a very long time, to get it all right. So I want to backup the whole system, so I can easily put up a new installation in no time.
But I am actually a newbie in backup sollutions under linux.
My dream would be:
I copy all the files under the root partition(/) onto a DVD or CD, the same goes for the boot partition. Then when my system crashes, I load a Gentoo Live CD, create my partitions (one root one boot, one swap), copy my backuped file into root and boot partition, alter the fstab if needed, and finally put grub onto MBR, and then it should be done, sounds simple is propably all wrong but I dont want any images, cause who knows if a get a new HD or even if I want to change the root filesystem. So it has to be open to all kinds of HD Partitioning.
So how am I able to archive this goal?
So long
Headi |
|
Back to top |
|
|
krusty_ar Guru
Joined: 03 Oct 2002 Posts: 560 Location: Rosario, Argentina
|
Posted: Wed Dec 24, 2003 5:46 pm Post subject: |
|
|
[DUP]
please search for one of the multiple Documentation Tips and Tricks threads about this issue (the solution is pretty simple) _________________ I am Beta, don't expect correct behaviour from me.
Take part of the adopt an unaswered post initiative |
|
Back to top |
|
|
devsk Advocate
Joined: 24 Oct 2003 Posts: 2995 Location: Bay Area, CA
|
Posted: Thu Dec 25, 2003 12:04 am Post subject: |
|
|
Is there a way to create disk or parition images (e.g. like ghost)? dar and flexbackup don't satisfy this need. When the system is screwed up(e.g. disk corruption or failure), there is nothing better than a disk or even a partition image.
I couldn't find anything about creating full disk/partition images on linux. If you know the link, please post. thanks. |
|
Back to top |
|
|
thegoonden Tux's lil' helper
Joined: 02 Dec 2003 Posts: 84 Location: N Ireland
|
Posted: Fri Dec 26, 2003 4:10 am Post subject: |
|
|
easiest way to do it.....
For example to back up my root partition ...
dd if=/dev/hdc6|gzip>root.img.gz
to restore....
zcat root.img.gz|dd of=/dev/hdc6
not at my machine now so this syntax is from memory.
One gotcha is that it can all go tits up if you restore to a partition of a different size (but if you do get into this kind of trouble, you can always restore it temporarily, then use a more conventional tar based method to move the stuff off, mkfs on the partition then untar the stuff back to it. |
|
Back to top |
|
|
Headhunter n00b
Joined: 20 Sep 2002 Posts: 40
|
Posted: Fri Dec 26, 2003 5:37 pm Post subject: |
|
|
thegoonden wrote: | easiest way to do it.....
For example to back up my root partition ...
dd if=/dev/hdc6|gzip>root.img.gz
to restore....
zcat root.img.gz|dd of=/dev/hdc6
not at my machine now so this syntax is from memory.
One gotcha is that it can all go tits up if you restore to a partition of a different size (but if you do get into this kind of trouble, you can always restore it temporarily, then use a more conventional tar based method to move the stuff off, mkfs on the partition then untar the stuff back to it. |
Thx for the Tip.
I think I give a tar a try.
Anyone know how to put a command to backup root EXCEPT the home directory. I do not want to backup each directory under root seperatly. Is there any way to archive this?
Headi |
|
Back to top |
|
|
devsk Advocate
Joined: 24 Oct 2003 Posts: 2995 Location: Bay Area, CA
|
Posted: Sun Dec 28, 2003 9:44 pm Post subject: |
|
|
thegoonden wrote: | easiest way to do it.....
For example to back up my root partition ...
dd if=/dev/hdc6|gzip>root.img.gz
to restore....
zcat root.img.gz|dd of=/dev/hdc6
not at my machine now so this syntax is from memory.
One gotcha is that it can all go tits up if you restore to a partition of a different size (but if you do get into this kind of trouble, you can always restore it temporarily, then use a more conventional tar based method to move the stuff off, mkfs on the partition then untar the stuff back to it. |
of course the image file has to be written to a different disk/partition. two questions:
1. If the destination partition is smaller in size compared to the source but the used space in source is less than the dest parition size, would this write work?
for restore I can make sure that I restore to a same size partition.
2. can you please confirm the syntax as well. Thanks. |
|
Back to top |
|
|
Dinini Apprentice
Joined: 11 Jun 2003 Posts: 236
|
Posted: Mon Dec 29, 2003 6:09 pm Post subject: |
|
|
devsk wrote: | Is there a way to create disk or parition images (e.g. like ghost)? |
Partition Image is as close as you get http://www.partimage.org/
http://www.systemrescuecd.org/ contains partimage and several graphical partition tools, quite nice if there's a problem. |
|
Back to top |
|
|
devsk Advocate
Joined: 24 Oct 2003 Posts: 2995 Location: Bay Area, CA
|
Posted: Mon Dec 29, 2003 7:59 pm Post subject: |
|
|
WOW!!
that's what I have been looking for! Thanks a tonne for the links!
Am I in heaven or is it just Gentoo people? |
|
Back to top |
|
|
schism39401 Tux's lil' helper
Joined: 13 Mar 2003 Posts: 130
|
|
Back to top |
|
|
|