Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Back up my gentoo system!!
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Headhunter
n00b
n00b


Joined: 20 Sep 2002
Posts: 40

PostPosted: Wed Dec 24, 2003 3:19 pm    Post subject: Back up my gentoo system!! Reply with quote

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
View user's profile Send private message
krusty_ar
Guru
Guru


Joined: 03 Oct 2002
Posts: 560
Location: Rosario, Argentina

PostPosted: Wed Dec 24, 2003 5:46 pm    Post subject: Reply with quote

[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
View user's profile Send private message
devsk
Advocate
Advocate


Joined: 24 Oct 2003
Posts: 2995
Location: Bay Area, CA

PostPosted: Thu Dec 25, 2003 12:04 am    Post subject: Reply with quote

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
View user's profile Send private message
thegoonden
Tux's lil' helper
Tux's lil' helper


Joined: 02 Dec 2003
Posts: 84
Location: N Ireland

PostPosted: Fri Dec 26, 2003 4:10 am    Post subject: Reply with quote

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
View user's profile Send private message
Headhunter
n00b
n00b


Joined: 20 Sep 2002
Posts: 40

PostPosted: Fri Dec 26, 2003 5:37 pm    Post subject: Reply with quote

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
View user's profile Send private message
devsk
Advocate
Advocate


Joined: 24 Oct 2003
Posts: 2995
Location: Bay Area, CA

PostPosted: Sun Dec 28, 2003 9:44 pm    Post subject: Reply with quote

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
View user's profile Send private message
Dinini
Apprentice
Apprentice


Joined: 11 Jun 2003
Posts: 236

PostPosted: Mon Dec 29, 2003 6:09 pm    Post subject: Reply with quote

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
View user's profile Send private message
devsk
Advocate
Advocate


Joined: 24 Oct 2003
Posts: 2995
Location: Bay Area, CA

PostPosted: Mon Dec 29, 2003 7:59 pm    Post subject: Reply with quote

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
View user's profile Send private message
schism39401
Tux's lil' helper
Tux's lil' helper


Joined: 13 Mar 2003
Posts: 130

PostPosted: Mon Dec 29, 2003 10:06 pm    Post subject: Reply with quote

Here is a good site for back up solutions

http://www.linux-backup.net/
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum