Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > Linux Resources > Linux Tutorials, HOWTO's & Reference Material > Central Rsync Server: Gentoo Howto

Forgot Password?
 Linux Tutorials, HOWTO's & Reference Material   A useful collection of tutorials, guides and reviews compiled here for easy reference purposes.

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
 
Thread Tools Display Modes
Old 03-31-2004   #1 (permalink)
Linux Newbie
 
zdawg's Avatar
 
Join Date: Jan 2004
Location: Canada
Posts: 218
Central Rsync Server: Gentoo Howto

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!
__________________
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
zdawg is offline  


Old 03-31-2004   #2 (permalink)
Linux Guru
 
Join Date: Apr 2003
Location: London, UK
Posts: 3,284
Moved to tutorials. nice job.
jasonlambert is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 04:19 PM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2