View previous topic :: View next topic |
Author |
Message |
vt_guy n00b
Joined: 21 Dec 2004 Posts: 66
|
Posted: Sat Jun 30, 2007 9:30 pm Post subject: Backup Question |
|
|
Hi, I want to give Ubuntu a quick try as my mythtv setup on gentoo has been problematic.
I suspect I will want to just restore my gentoo setup in the end so I want to save it.
Any advice on the best method to do this?
Please don't flame me. I prefer gentoo on my server fbut for myth frontend it's just been a pain for me.
Thanks!
Eric _________________ Thanks,
Eric |
|
Back to top |
|
|
mahdi1234 Guru
Joined: 19 Feb 2005 Posts: 559 Location: Being There
|
|
Back to top |
|
|
vt_guy n00b
Joined: 21 Dec 2004 Posts: 66
|
Posted: Sat Jun 30, 2007 10:09 pm Post subject: |
|
|
You recommend the custom stage 4? _________________ Thanks,
Eric |
|
Back to top |
|
|
mahdi1234 Guru
Joined: 19 Feb 2005 Posts: 559 Location: Being There
|
Posted: Sun Jul 01, 2007 8:54 am Post subject: |
|
|
I'm recommending post from uman
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!
|
cheers ... |
|
Back to top |
|
|
psycho Guru
Joined: 22 Jun 2007 Posts: 534 Location: New Zealand
|
Posted: Sun Jul 01, 2007 9:42 am Post subject: |
|
|
partimage (which is also mentioned in that post) does it very easily if you want a whole disk partition backed up and restored exactly as it was. the gentoo-based system rescue cd is a bootable cd that includes partimage, along with many other useful tools. on the other hand, if you have another system on your lan or on a hard disk partition from which you can perform the backup, you can simplyand run it from there.
i keep my system partitions under 5G so their images will fit on dvd-r's, but seldom burn them; instead i keep most of them on another (large, obviously) hard disk. whenever i feel like doing something drastic (and installing another distro definitely qualifies, but even emerge -uDN world can be drastic) i back up my whole system, which takes about five minutes. if i want the old system back, five minutes and it's back like nothing ever happened.
if you have enough hard disk space, the (compressed) images partimage creates are a great way to archive alternate setups. creating the image is as easy as selecting the partition from a menu, what kind of compression you want to use, and so on...restoring it is just as easy. |
|
Back to top |
|
|
tobr Guru
Joined: 29 May 2006 Posts: 330
|
Posted: Sun Jul 01, 2007 11:18 am Post subject: Re: Backup Question |
|
|
vt_guy wrote: | Hi, I want to give Ubuntu a quick try as my mythtv setup on gentoo has been problematic.
I suspect I will want to just restore my gentoo setup in the end so I want to save it.
Any advice on the best method to do this? |
IMHO the best method depends on what media you want to backup to. If you have an external hard disk that is big enough to hold all your data you could even use cp with the "-a" switch. If you need to split the backup over several CDs/DVDs then you will perhaps want to have a look at app-backup/dar, which supports some fancy stuff like not only automatically splitting the backup but you can also get it to wait after creating one backup file for your confirmation to go on. This is useful if you do not have enough free space on your HD and want to burn each single backup CD/DVD individually and delete the file from your HD.
As somebody probably already mentioned: Use some live CD to restore the backup.
HTH _________________ Please add [SOLVED] to your message title if your problem is solved.
Death to all blobs! |
|
Back to top |
|
|
psycho Guru
Joined: 22 Jun 2007 Posts: 534 Location: New Zealand
|
Posted: Sun Jul 01, 2007 12:10 pm Post subject: |
|
|
yeah, i forgot to mention that partimage can split images into files of whatever size you want as well. anyway, there are lots of tools that can do the job so take your pick.
re ubuntu, it's a nice distro...and yes, you probably will want to restore your gentoo setup in the end.
|
|
Back to top |
|
|
vt_guy n00b
Joined: 21 Dec 2004 Posts: 66
|
Posted: Sun Jul 01, 2007 7:46 pm Post subject: |
|
|
Thanks for all the advice. PartImage from the rescueCD worked very well for me. _________________ Thanks,
Eric |
|
Back to top |
|
|
d2_racing Bodhisattva
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
|
Back to top |
|
|
|