Results 1 to 2 of 2
|
Enjoy an ad free experience by logging in. Not a member yet? Register.
|
|
-
03-31-2004 #1
Central Rsync Server: Gentoo Howto
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!Me & Myself just ganged up on I....... Now We all have problems..and none of Us are speaking!
bash-3.00$ uname -a
SunOS sparky 5.11 OpenSolaris-swa sun4u sparc SUNW,Ultra-Enterprise
-
03-31-2004 #2
- Join Date
- Apr 2003
- Location
- London, UK
- Posts
- 3,284
Moved to tutorials. nice job.