Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
how to creat a backup of my tweaked gentoo system?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
re_re
Tux's lil' helper
Tux's lil' helper


Joined: 05 Mar 2005
Posts: 129
Location: Milwaukee, Wisconsin

PostPosted: Sat Mar 05, 2005 3:26 pm    Post subject: how to creat a backup of my tweaked gentoo system? Reply with quote

i'm not sure if this is where this belongs, but its going here lol
anyway, i was wondering if anyone could explain to me how to back up my entire gentoo system to cd's or dvd and make it bootable so that.....when i trash my gentoo box.....and it will happen lol, i can reinstall my tweaked gentoo system instead of starting from scratch.

would be nice to avoid all the compiling and reconfiguring of everything

any suggestions would be much appreciated
thanks
_________________
MSI 865PE Neo2 FISR, p4 2.6c, nv 5600

MSI K8N FSR, athlon64 2800+ @2016mhz, nv 6800xt

Compaq Deskpro Pentium3 500mhz

Macbook Pro 1.83ghz 1.5 gig pc5300
Back to top
View user's profile Send private message
uman
Apprentice
Apprentice


Joined: 20 Dec 2004
Posts: 223

PostPosted: Sat Mar 05, 2005 3:32 pm    Post subject: Reply with quote

1) Boot from a LiveCD
2) mount your drive at /mnt/gentoo
3) tar -cvvjp /mnt/gentoo/* -f /mnt/gentoo/backup.tar.bz2
4) Burn that file to a CD or DVD (If you don't know how search on google for cdrecord and mkisofs)
5) run md5sum /mnt/gentoo/backup.tar.bz2
6) run md5sum on the backup.tar.bz2 on the CD
7) Verify they are the same

To restore:

1) Boot from the LiveCD
2) Reformat your partition
3) Mount your newly-erased partition at /mnt/gentoo
4) Copy backup.tar.bz2 from the CD/DVD to /mnt/gentoo
5) cd /mnt/gentoo
6) tar -xvjpf backup.tar.bz2

Hope this helps, enjoy!
_________________
Gentoo Stable (some ~x86 in package.keywords)
Pentium 4 3.0 GHz w/HT
Reiser4 root partition
Nvidia GeForce 6800

The Anti-1337 Manifesto
Back to top
View user's profile Send private message
mahdi1234
Guru
Guru


Joined: 19 Feb 2005
Posts: 559
Location: Being There

PostPosted: Sat Mar 05, 2005 3:34 pm    Post subject: Reply with quote

u can store an image of either whole your drive or partitions u want ... use norton ghost or power quest drive image ... mebe something gpl available as well dunno ...
Back to top
View user's profile Send private message
re_re
Tux's lil' helper
Tux's lil' helper


Joined: 05 Mar 2005
Posts: 129
Location: Milwaukee, Wisconsin

PostPosted: Sat Mar 05, 2005 4:07 pm    Post subject: Reply with quote

awesome, thanks a lot, big help
_________________
MSI 865PE Neo2 FISR, p4 2.6c, nv 5600

MSI K8N FSR, athlon64 2800+ @2016mhz, nv 6800xt

Compaq Deskpro Pentium3 500mhz

Macbook Pro 1.83ghz 1.5 gig pc5300
Back to top
View user's profile Send private message
uman
Apprentice
Apprentice


Joined: 20 Dec 2004
Posts: 223

PostPosted: Sat Mar 05, 2005 4:20 pm    Post subject: Reply with quote

No problem. By the way, if you want to be paranoid you could remove the -j flag in both the tar commands, this will make an insanely big file but it will be more resistant to, say, DVD or CD media getting scratched.
_________________
Gentoo Stable (some ~x86 in package.keywords)
Pentium 4 3.0 GHz w/HT
Reiser4 root partition
Nvidia GeForce 6800

The Anti-1337 Manifesto
Back to top
View user's profile Send private message
re_re
Tux's lil' helper
Tux's lil' helper


Joined: 05 Mar 2005
Posts: 129
Location: Milwaukee, Wisconsin

PostPosted: Thu Mar 17, 2005 6:31 am    Post subject: Reply with quote

backed up my system with the aformentioned technique that uman posted and installed it on my other comp wihich is nearly identical to this one and it worked great.

just an update
_________________
MSI 865PE Neo2 FISR, p4 2.6c, nv 5600

MSI K8N FSR, athlon64 2800+ @2016mhz, nv 6800xt

Compaq Deskpro Pentium3 500mhz

Macbook Pro 1.83ghz 1.5 gig pc5300
Back to top
View user's profile Send private message
asiobob
Veteran
Veteran


Joined: 29 Oct 2003
Posts: 1375
Location: Bamboo Creek

PostPosted: Thu Mar 17, 2005 9:44 am    Post subject: Reply with quote

consider dar if you find your system changes often. It does differential backups and you can extract the catelog etc.. so you can make diff backups without giving it the entire first.

I use this to back up the /home partition on our server.
"dar" is a sourceforge hosted project
Back to top
View user's profile Send private message
johabba
n00b
n00b


Joined: 23 May 2004
Posts: 22

PostPosted: Thu Mar 17, 2005 12:11 pm    Post subject: The BEST Linux utility I have found to date. Reply with quote

Two words:

mondo-rescue

Link:

http://www.microwerks.net/~hugo/
_________________
So Fresh. So Clean. :cool:
Gentoo Linux 2.6.16-custom-r1
AMD Althon XP 3000+
256MB GeForce 7800 GS
2048MB pc3200 Cosair XMS DDR ram
320 GB - 3 ide133 HDD
12x DVD-/+RW
Back to top
View user's profile Send private message
re_re
Tux's lil' helper
Tux's lil' helper


Joined: 05 Mar 2005
Posts: 129
Location: Milwaukee, Wisconsin

PostPosted: Fri Mar 18, 2005 6:46 pm    Post subject: Reply with quote

emerged mondo-rescue and mindi, haven't tried it yet, but looks pretty cool from the website
i'll post how well it works
_________________
MSI 865PE Neo2 FISR, p4 2.6c, nv 5600

MSI K8N FSR, athlon64 2800+ @2016mhz, nv 6800xt

Compaq Deskpro Pentium3 500mhz

Macbook Pro 1.83ghz 1.5 gig pc5300
Back to top
View user's profile Send private message
mOjO_420
n00b
n00b


Joined: 11 Jun 2003
Posts: 71
Location: Suburbs of Chicago, IL, USA

PostPosted: Fri Mar 25, 2005 5:41 am    Post subject: Reply with quote

so...

how well did it work?
_________________
http://thegeekclub.net
Back to top
View user's profile Send private message
re_re
Tux's lil' helper
Tux's lil' helper


Joined: 05 Mar 2005
Posts: 129
Location: Milwaukee, Wisconsin

PostPosted: Sat Mar 26, 2005 3:20 am    Post subject: Reply with quote

i can't get it to run... it boots from the cd that i burned, but.... i can't backup my system...... i must admit though.... i haven't really put much time or effort in making it work
_________________
MSI 865PE Neo2 FISR, p4 2.6c, nv 5600

MSI K8N FSR, athlon64 2800+ @2016mhz, nv 6800xt

Compaq Deskpro Pentium3 500mhz

Macbook Pro 1.83ghz 1.5 gig pc5300
Back to top
View user's profile Send private message
xxxx
n00b
n00b


Joined: 25 Mar 2005
Posts: 17

PostPosted: Sun Mar 27, 2005 3:35 am    Post subject: Reply with quote

http://www.partimage.org/ @
http://www.sysresccd.org/ and/or portage :lol:

imho...
Back to top
View user's profile Send private message
jerome bettis
n00b
n00b


Joined: 06 Mar 2005
Posts: 37

PostPosted: Sun Mar 27, 2005 4:39 am    Post subject: Reply with quote

the first thing i'm doing when i finally get this system installed is running partimage to save a perfectly clean install. then i'll probably do it again after i get it set up the way i like it.

partimage is pretty simple. cd into the directory you want the image to be saved in first though otherwise you could run out of space. then just select the partition you're backing up and type in a name for the image file. burn it to a cd if you'd like. later when you want to restore just fire it up again, pick the partition & image file and you're done.
Back to top
View user's profile Send private message
mOjO_420
n00b
n00b


Joined: 11 Jun 2003
Posts: 71
Location: Suburbs of Chicago, IL, USA

PostPosted: Mon Mar 28, 2005 1:26 am    Post subject: Reply with quote

so in order to recover the partition i have to get a new system installed and setup (at least so far as being able to run partimage?) maybe its included on knoppix or something?

that indeed sounds really easy though.. when restoring can i restore it on a larger partition than the original?

should i shut up and read the docs... ;-)
_________________
http://thegeekclub.net
Back to top
View user's profile Send private message
Dunska
n00b
n00b


Joined: 27 Apr 2002
Posts: 15
Location: Brisbane, Australia

PostPosted: Mon Mar 28, 2005 2:32 am    Post subject: Reply with quote

Also check out: http://gentoo-wiki.com/HOWTO_Custom_Stage4

I use this method (basically a complete tar of the file system as mentioned previously) and it works well.

I modify the gentoo live cd to add this file and install from there.

The good thing about this is you can reinstall to different filesystem types if you want to change (e.g. move from ext3 to reiser4) - just be sure to update your fstab before rebooting :wink:
Back to top
View user's profile Send private message
jerome bettis
n00b
n00b


Joined: 06 Mar 2005
Posts: 37

PostPosted: Tue Mar 29, 2005 12:18 am    Post subject: Reply with quote

mOjO_420 wrote:
so in order to recover the partition i have to get a new system installed and setup (at least so far as being able to run partimage?) maybe its included on knoppix or something?

that indeed sounds really easy though.. when restoring can i restore it on a larger partition than the original?


well i have 2 distros on the same hard drive, so if one gets messed up i'm ok. it might be on the knoppix cd i don't know. it is really easy and you can choose to use gzip / bzip / no compression on the image. you can restore the old partition to a larger one, but you can't restore it to one that is smaller. that kinda sucks but only makes sense.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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