Home Search {msgAddContent} Ask question {msgOpenQuestions} Help

Categories

Show all categories

  • No Categories found.

Home

change language


Central Rsync Server: Gentoo Howto

Central Rsync Server: Gentoo Howto
Posted by zdawg at Wed Mar 31, 2004 9:17 pm

NOTE: if you read the tutorial and are still experiencing difficulties and would like help, you are asked to start a new topic on the forums.
Please do NOT reply to this thread to ask a technical question. Replies to THIS thread should be corrections and enhancements on the tutorial/howto only.
Thanks in advance for your co-operation.
LinuxForums.org

------------------------------------------


I thought I would add this How-To for the Gentoo users out there, assuming you have a LAN set-up, it saves time downloading. Let's begin!

emerge app-admin/gentoo-rsync-mirror
Don't update the config files after emerge!


#Now that that is merged let's configure
nano /etc/rsync/rsyncd.conf


#Here is what I have in that file:


use chroot = no
max connections = 10
pid file = /var/run/rsyncd.pid
motd file = /etc/rsync/rsyncd.motd
transfer logging = yes
log format = %t %a %m %f %b
syslog facility = local3
timeout = 300

#hosts allow = <your list>

[gentoo-portage]
#For replicating the Portage tree to internal clients
path = /usr/portage
comment = Gentoo Linux Portage tree mirror
exclude = distfiles

[gentoo-packages]
#For distributing Portage packages (distfiles) to internal clients
path = /usr/portage/distfiles
comment = Gentoo Linux Packages mirror


rc-update add rsyncd default
/etc/init.d/rsyncd start

#That was the server set-up, now on to the client, let's edit /etc/make.conf

PORTDIR=/usr/portage
DISTDIR=${PORTDIR}/distfiles

#Find and uncomment those.
#Now add this

SYNC=rsync://<Your gateway ip here>/gentoo-portage

#Then add this ( I group it with the other fetch commands):

FETCHCOMMAND="rsync rsync://<your gateway ip>/gentoo-packages/\${FILE} ${DISTDIR}"

#I almost forgot, rsync tries to compress an already compressed file in this set-up, so add this to your server:

nano -w /etc/init.d/rsyncd
#change this line:
RSYNC_OPTS="--safe-links --compress --bwlimit=700 --timeout=1800"
#to look like this:
RSYNC_OPTS="--safe-links --time
out=1800"



I then do any emerge's on the gateway box once. And I use the emerge -f first on the client as well as the server.
A note: your gateway ip should be your internal gw ip!

Works for me, especially as I have a 56K connection!

Last update: 2005-03-02 03:15
Author: Erkan Kaplan

printer-friendly version printer-friendly version
Send to a friend Send to a friend
Show this as PDF file Show this as PDF file
export as XML-File export as XML-File

Please rate this entry:

Average rating: 0 from 5 (0 Votes )

completely useless 1 2 3 4 5 most valuable

You can comment on this entry

Comment of izbsa kfpr:
qolfm vjftq pden zanhyx uwsthzcxj nvejshyb zldgje

1 User online lapis Phpmyfaq