Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie zdawg's Avatar
    Join Date
    Jan 2004

    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.


    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/
    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>

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

    #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


    #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

    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

  2. #2
    Linux Guru
    Join Date
    Apr 2003
    London, UK
    Moved to tutorials. nice job.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts