View previous topic :: View next topic |
Author |
Message |
re_re Tux's lil' helper
Joined: 05 Mar 2005 Posts: 129 Location: Milwaukee, Wisconsin
|
Posted: Sat Mar 05, 2005 3:26 pm Post subject: how to creat a backup of my tweaked gentoo system? |
|
|
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 |
|
|
uman Apprentice
Joined: 20 Dec 2004 Posts: 223
|
Posted: Sat Mar 05, 2005 3:32 pm Post subject: |
|
|
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 |
|
|
mahdi1234 Guru
Joined: 19 Feb 2005 Posts: 559 Location: Being There
|
Posted: Sat Mar 05, 2005 3:34 pm Post subject: |
|
|
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 |
|
|
re_re Tux's lil' helper
Joined: 05 Mar 2005 Posts: 129 Location: Milwaukee, Wisconsin
|
Posted: Sat Mar 05, 2005 4:07 pm Post subject: |
|
|
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 |
|
|
uman Apprentice
Joined: 20 Dec 2004 Posts: 223
|
Posted: Sat Mar 05, 2005 4:20 pm Post subject: |
|
|
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 |
|
|
re_re Tux's lil' helper
Joined: 05 Mar 2005 Posts: 129 Location: Milwaukee, Wisconsin
|
Posted: Thu Mar 17, 2005 6:31 am Post subject: |
|
|
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 |
|
|
asiobob Veteran
Joined: 29 Oct 2003 Posts: 1375 Location: Bamboo Creek
|
Posted: Thu Mar 17, 2005 9:44 am Post subject: |
|
|
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 |
|
|
johabba n00b
Joined: 23 May 2004 Posts: 22
|
Posted: Thu Mar 17, 2005 12:11 pm Post subject: The BEST Linux utility I have found to date. |
|
|
Two words:
mondo-rescue
Link:
http://www.microwerks.net/~hugo/ _________________ So Fresh. So Clean.
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 |
|
|
re_re Tux's lil' helper
Joined: 05 Mar 2005 Posts: 129 Location: Milwaukee, Wisconsin
|
Posted: Fri Mar 18, 2005 6:46 pm Post subject: |
|
|
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 |
|
|
mOjO_420 n00b
Joined: 11 Jun 2003 Posts: 71 Location: Suburbs of Chicago, IL, USA
|
Posted: Fri Mar 25, 2005 5:41 am Post subject: |
|
|
so...
how well did it work? _________________ http://thegeekclub.net |
|
Back to top |
|
|
re_re Tux's lil' helper
Joined: 05 Mar 2005 Posts: 129 Location: Milwaukee, Wisconsin
|
Posted: Sat Mar 26, 2005 3:20 am Post subject: |
|
|
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 |
|
|
xxxx n00b
Joined: 25 Mar 2005 Posts: 17
|
|
Back to top |
|
|
jerome bettis n00b
Joined: 06 Mar 2005 Posts: 37
|
Posted: Sun Mar 27, 2005 4:39 am Post subject: |
|
|
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 |
|
|
mOjO_420 n00b
Joined: 11 Jun 2003 Posts: 71 Location: Suburbs of Chicago, IL, USA
|
Posted: Mon Mar 28, 2005 1:26 am Post subject: |
|
|
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 |
|
|
Dunska n00b
Joined: 27 Apr 2002 Posts: 15 Location: Brisbane, Australia
|
Posted: Mon Mar 28, 2005 2:32 am Post subject: |
|
|
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 |
|
Back to top |
|
|
jerome bettis n00b
Joined: 06 Mar 2005 Posts: 37
|
Posted: Tue Mar 29, 2005 12:18 am Post subject: |
|
|
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 |
|
|
|