Hi I've setup a my own small server for my LAN
1 . Make a directory where store an rsync server (Examplke : /mirror/sabayon-mirror)
2 . Setup /etc/rsyncd.conf (rsync configuration file : see
http://www.gentoo.org/doc/en/rsync.xml)
This is myown config files :
- Code: Select all
[gentoo-portage]
path = /usr/portage
comment = Local Gentoo Portage Tree
exclude = distfiles/ packages/
[sabayon]
path = /mirror/sabayon-mirror
comment = Local Sabayon Mirror
3. create a cron script for sync :
- Code: Select all
#!/bin/bash
sync -az --delete --update --exclude-from=/mirror/exclude.lst rsync://na.mirror.garr.it/sabayonlinux /mirror/sabayon-mirror
exclude.lst file , contains the directories/files that I want to exclude (sorting by relative paths)
- Code: Select all
games-*
*.etp
*.debug.tar.bz2
distfiles/
iso/
entropy/standard/portage/
entropy/standard/sabayon-limbo/
entropy/standard/sabayon-hell/
entropy/standard/sabayon-armel/
entropy/standard/sabayonlinux.org/database/x86/
entropy/standard/sabayonlinux.org/database/armv7l/
entropy/standard/sabayonlinux.org/database/armel/
entropy/standard/sabayonlinux.org/packages/x86/
entropy/standard/sabayonlinux.org/packages//armel/
entropy/standard/sabayonlinux.org/packages/armv7l/
entropy/standard/sabayonlinux.org/packages-nonfree/x86/
entropy/standard/sabayonlinux.org/packages-nonfree/armel/
entropy/standard/sabayonlinux.org/packages-nonfree/armv7l/
entropy/standard/sabayonlinux.org/packages-restricted/x86/
entropy/standard/sabayonlinux.org/packages-restricted/armel/
entropy/standard/sabayonlinux.org/packages-restricted/armv7l/
entropy/standard/sabayon-weekly/database/x86/
entropy/standard/sabayon-weekly/database/armv7l/
entropy/standard/sabayon-weekly/database/armel/
entropy/standard/sabayon-weekly/packages/x86/
entropy/standard/sabayonlinux.org/packages-restricted/armel/
entropy/standard/sabayonlinux.org/packages-restricted/armv7l/
entropy/standard/sabayon-weekly/database/x86/
entropy/standard/sabayon-weekly/database/armv7l/
entropy/standard/sabayon-weekly/database/armel/
entropy/standard/sabayon-weekly/packages/x86/
entropy/standard/sabayon-weekly/packages//armel/
entropy/standard/sabayon-weekly/packages/armv7l/
entropy/standard/sabayon-weekly/packages-nonfree/x86/
entropy/standard/sabayon-weekly/packages-nonfree/armel/
entropy/standard/sabayon-weekly/packages-nonfree/armv7l/
As you can see I excluded ISO's directory and some repo and arch that I don't care or to sync because most of my Pcs are 64bit
Change na.mirror.it rsync server with you preferite rsync server
4.Edit /etc/entropy/repositories.conf.d/entropy_sabayonlinux.org
(or entropy_sabayon-limbo)
and add this line at the end of the file
- Code: Select all
repository = sabayonlinux.org|Local Repository|rsync://<your_IP_server>/sabayon/entropy|rsync://<you_IP_server>/sabayon/entropy|
change IP andress and/or paths with your choice.
5. start rsync service
- Code: Select all
/etc/init.d/rsyncd start && rc-update add rsyncd default
6 . run rsync script that you make.
Note : first sync is very long
6 . Try if it works
- Code: Select all
# equo update --force && equo install equo --relaxed
If you want your rsync mirror update , please comment all repository mirrors (except your )
Change all paths with your own. I wrote this as example refered to my configuration