View previous topic :: View next topic |
Author |
Message |
mips n00b
Joined: 15 Oct 2007 Posts: 28 Location: Yverdon
|
Posted: Thu Feb 28, 2008 11:59 am Post subject: Backup portage-tree? |
|
|
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 |
|
|
frostschutz Advocate
Joined: 22 Feb 2005 Posts: 2977 Location: Germany
|
Posted: Thu Feb 28, 2008 12:08 pm Post subject: |
|
|
/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 |
|
|
vad3r Guru
Joined: 02 May 2004 Posts: 461 Location: Munich, Germany
|
Posted: Thu Feb 28, 2008 12:13 pm Post subject: |
|
|
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 |
|
|
ToeiRei Veteran
Joined: 03 Jan 2005 Posts: 1191 Location: Austria
|
Posted: Thu Feb 28, 2008 12:25 pm Post subject: |
|
|
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 |
|
|
mips n00b
Joined: 15 Oct 2007 Posts: 28 Location: Yverdon
|
Posted: Thu Feb 28, 2008 12:34 pm Post subject: |
|
|
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 and ? |
|
Back to top |
|
|
vad3r Guru
Joined: 02 May 2004 Posts: 461 Location: Munich, Germany
|
Posted: Thu Feb 28, 2008 12:37 pm Post subject: |
|
|
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 |
|
|
schachti Advocate
Joined: 28 Jul 2003 Posts: 3765 Location: Gifhorn, Germany
|
|
Back to top |
|
|
mips n00b
Joined: 15 Oct 2007 Posts: 28 Location: Yverdon
|
Posted: Thu Feb 28, 2008 12:48 pm Post subject: |
|
|
Ok, i read it.
So first --sync and then world...
thanks |
|
Back to top |
|
|
ToeiRei Veteran
Joined: 03 Jan 2005 Posts: 1191 Location: Austria
|
Posted: Thu Feb 28, 2008 12:50 pm Post subject: |
|
|
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 |
|
|
|