Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Backup portage-tree?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
mips
n00b
n00b


Joined: 15 Oct 2007
Posts: 28
Location: Yverdon

PostPosted: Thu Feb 28, 2008 11:59 am    Post subject: Backup portage-tree? Reply with quote

Hello,

I'm setting up a server and now i have a question about backing up the whole system.
I don't have too much backupspace thats why i watched arround how big my backups
will become.
I found the /usr/portage it's size is about 1.5GB . Is it a good idea to exclude it from
my monthly backups? I thought that in the beginning I will back it up once and then
never again.

If you could give me your advises...

Thanks a lot
Back to top
View user's profile Send private message
frostschutz
Advocate
Advocate


Joined: 22 Feb 2005
Posts: 2977
Location: Germany

PostPosted: Thu Feb 28, 2008 12:08 pm    Post subject: Reply with quote

/usr/portage is something you can just download from the web whenever. no need to backup it locally.

emerge-webrsync
emerge --sync
Back to top
View user's profile Send private message
vad3r
Guru
Guru


Joined: 02 May 2004
Posts: 461
Location: Munich, Germany

PostPosted: Thu Feb 28, 2008 12:13 pm    Post subject: Reply with quote

You could exclude most of /usr/portage from your backup. If you need to restore your server sync portage and you'll be fine. distfiles can be cleaned up from time to time. This will make /usr/portage smaller.
Keep in mind the /etc/make.profile is a link to a profile in /usr/portage
_________________
-- http://www.linuxaddicted.de/ | Please help to answer open questions
Back to top
View user's profile Send private message
ToeiRei
Veteran
Veteran


Joined: 03 Jan 2005
Posts: 1191
Location: Austria

PostPosted: Thu Feb 28, 2008 12:25 pm    Post subject: Reply with quote

You may want to kill the source packages in /usr/portage/distfiles or use eclean to reduce the size of that directory.

But in general, loosing /usr/portage is no tradegy as ...

  • the portage tree itself can be downloaded via emerge --sync.
  • packages could be regenerated if you'd need them.
  • distfiles won't be a big loss too, as they're downloaded as needed during the emerge process

_________________
Please stand by - The mailer daemon is busy burning your messages in hell...
Back to top
View user's profile Send private message
mips
n00b
n00b


Joined: 15 Oct 2007
Posts: 28
Location: Yverdon

PostPosted: Thu Feb 28, 2008 12:34 pm    Post subject: Reply with quote

Thanks a lot for your answers.

I putted it in the exclude list.

If we are talking about emerge --sync...
What is the difference between
Code:
emerge world
and
Code:
emerge --sync
?
Back to top
View user's profile Send private message
vad3r
Guru
Guru


Joined: 02 May 2004
Posts: 461
Location: Munich, Germany

PostPosted: Thu Feb 28, 2008 12:37 pm    Post subject: Reply with quote

emerge --sync updates your portage tree (ebuild).

emerge world installs updates to your computer.
_________________
-- http://www.linuxaddicted.de/ | Please help to answer open questions
Back to top
View user's profile Send private message
schachti
Advocate
Advocate


Joined: 28 Jul 2003
Posts: 3765
Location: Gifhorn, Germany

PostPosted: Thu Feb 28, 2008 12:44 pm    Post subject: Reply with quote

mips wrote:
If we are talking about emerge --sync...
What is the difference between
Code:
emerge world
and
Code:
emerge --sync
?


You really should have a look at the official documentation:

http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=2&chap=1.
_________________
Never argue with an idiot. He brings you down to his level, then beats you with experience.

How-To: Daten verschlüsselt auf DVD speichern.
Back to top
View user's profile Send private message
mips
n00b
n00b


Joined: 15 Oct 2007
Posts: 28
Location: Yverdon

PostPosted: Thu Feb 28, 2008 12:48 pm    Post subject: Reply with quote

Ok, i read it.

So first --sync and then world...

thanks :)
Back to top
View user's profile Send private message
ToeiRei
Veteran
Veteran


Joined: 03 Jan 2005
Posts: 1191
Location: Austria

PostPosted: Thu Feb 28, 2008 12:50 pm    Post subject: Reply with quote

emerge -uDNav world - that's what I'd suggest for updates...
_________________
Please stand by - The mailer daemon is busy burning your messages in hell...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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