Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Wouldn't it be nice if emerge...
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
Quantumstate
Apprentice
Apprentice


Joined: 26 May 2004
Posts: 270
Location: Dallas

PostPosted: Thu Jun 10, 2004 8:05 pm    Post subject: Wouldn't it be nice if emerge... Reply with quote

Emerge is a great tool; far exceeds BSD's system. But the agony of install makes me not want to do one from scratch again, if I have a disk die.

I wish we could back up our /etc and /home, and then do an:
# emerge sysbackup /mnt/dvd/mysys
which would make a record of every distfile we've chosen to install, into a flat file.

Then when booted to livecd:
# emerge sysrestore /mnt/dvd/mysys
and it would read each distfile noted, and pull it down and install, all in one whack.

Just spitballing here.
Back to top
View user's profile Send private message
tomthewombat
Apprentice
Apprentice


Joined: 29 Mar 2003
Posts: 244
Location: NY State

PostPosted: Thu Jun 10, 2004 8:15 pm    Post subject: Reply with quote

A very appealing idea! Except, when I reinstall everything it is usually to get rid of all the 'garbage' i emerged but didn't really need. HeHe
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Fri Jun 11, 2004 7:10 am    Post subject: Reply with quote

Moved from Installing Gentoo.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
saccory
Apprentice
Apprentice


Joined: 18 Feb 2004
Posts: 176
Location: Göttingen, Germany

PostPosted: Fri Jun 11, 2004 7:52 am    Post subject: Reply with quote

I think, there's no need to blow up emerge. A seperate portage-backup and portage-restore may do the job as well. Although I doubt it can replace an ordinary backup because there are so many dependencies to regard.
Back to top
View user's profile Send private message
Genone
Retired Dev
Retired Dev


Joined: 14 Mar 2003
Posts: 9545
Location: beyond the rim

PostPosted: Fri Jun 11, 2004 8:06 am    Post subject: Reply with quote

Just make a backup of /var/db/pkg in addition to /home and /etc, everything else can be regenerated.
Back to top
View user's profile Send private message
supernovus
Apprentice
Apprentice


Joined: 13 Jul 2003
Posts: 150
Location: inside my head

PostPosted: Fri Jun 11, 2004 7:07 pm    Post subject: Reply with quote

Use the package building features, save the packages as well as the portage tree on a CD (or multiple CDs if you have a lot of packages) and then you can reinstall easily. I actually wrote a set of scripts which automates this process since one of my computers has no internet access. I installed the entire system with it, and if I want to add a bunch of new software, I can build the packages at work, run a script which builds an update-`date +%F`.tar.bz2 file, stuff it on a zip disk, go home and type:
# tap install-update /mnt/zip/update-`date +%F`.tar.bz2

Presto, I've got all the new updates.

I'm sure you can write something similar to make a backup of your system.

I may integrate the update portion of my scripts with the mainline Tap client, and offer a place to download the installer portion (used to make a mostly automated Gentoo installation CD) if anyone is interested in it.
_________________
Remove OTW
Back to top
View user's profile Send private message
davidblewett
Apprentice
Apprentice


Joined: 15 Feb 2004
Posts: 274
Location: Indiana

PostPosted: Sun Jan 30, 2005 11:34 pm    Post subject: Reply with quote

I would appreciate looking at your work. My system has crashed a few times recently for a variety of reasons, and having an easy way to re-install would be nice.
_________________
No guilt in life, no fear in death
this is the power of Christ in me
From life’s first cry to final breath
Jesus commands my destiny
-- Newsboys, "In Christ Alone", "Adoration: The Worship Album"
Back to top
View user's profile Send private message
/dev/random
l33t
l33t


Joined: 26 Nov 2004
Posts: 704
Location: Austin, Texas, USA

PostPosted: Mon Jan 31, 2005 1:11 am    Post subject: Reply with quote

http://gentoo-wiki.com/HOWTO_Custom_Stage4
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat 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