Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Backup Question
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
vt_guy
n00b
n00b


Joined: 21 Dec 2004
Posts: 66

PostPosted: Sat Jun 30, 2007 9:30 pm    Post subject: Backup Question Reply with quote

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


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

PostPosted: Sat Jun 30, 2007 9:36 pm    Post subject: Reply with quote

You can find some inspiration in https://forums.gentoo.org/viewtopic-t-304171-highlight-.html did tar thing when moved to new hdd and it worked flawlesly
Back to top
View user's profile Send private message
vt_guy
n00b
n00b


Joined: 21 Dec 2004
Posts: 66

PostPosted: Sat Jun 30, 2007 10:09 pm    Post subject: Reply with quote

You recommend the custom stage 4?
_________________
Thanks,
Eric
Back to top
View user's profile Send private message
mahdi1234
Guru
Guru


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

PostPosted: Sun Jul 01, 2007 8:54 am    Post subject: Reply with quote

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


Joined: 22 Jun 2007
Posts: 534
Location: New Zealand

PostPosted: Sun Jul 01, 2007 9:42 am    Post subject: Reply with quote

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 simply
Code:
emerge partimage
and 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
View user's profile Send private message
tobr
Guru
Guru


Joined: 29 May 2006
Posts: 330

PostPosted: Sun Jul 01, 2007 11:18 am    Post subject: Re: Backup Question Reply with quote

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


Joined: 22 Jun 2007
Posts: 534
Location: New Zealand

PostPosted: Sun Jul 01, 2007 12:10 pm    Post subject: Reply with quote

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


Joined: 21 Dec 2004
Posts: 66

PostPosted: Sun Jul 01, 2007 7:46 pm    Post subject: Reply with quote

Thanks for all the advice. PartImage from the rescueCD worked very well for me.
_________________
Thanks,
Eric
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Tue Jul 03, 2007 4:14 am    Post subject: Reply with quote

You can also use the Stage 5 : https://forums.gentoo.org/viewtopic-t-534039.html
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