Local Rsync Mirror

Posted on Thu 14 March 2019 in linux

Easy startoff from official doc

  • On mirror machine:

/etc/rsyncd.conf:

pid file = /var/run/rsyncd.pid
max connections = 2
use chroot = yes
uid = nobody
gid = nobody
read only = yes
hosts allow = 192.168.0.2/24  # change the ip accordingly!
hosts deny = *

[gentoo-portage]
        path = /var/db/repos/gentoo
        # path = /usr/portage # old-style postion
        comment = Gentoo Portage tree
        exclude = /distfiles /packages

rsync --daemon --no-detach -4 to start

  • On client machine:

    1. rsync <mirror-addr>:: to check
    2. "sync-uri = rsync://<mirror-addr>/gentoo-portage/" in repos.conf/gentoo.conf
    3. emerge --sync

Other notable HOWTOs

https://forums.gentoo.org/viewtopic-t-180336-start-0.html

gw