Вообщем как я понял нет разницы что это будет, Sync зеркало дженты или просто бэкап на удалённой тачке. Но в моём случае делается именно Sync зеркало для Дженты, т.е. то короторое работает при emerge sync.
Вообщем проблемма такая, сделал конфиг /etc/rsyncd/rsyncd.conf следующего вида:
********************************************************************
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/rsync/files/rsyncd.conf,v 1.3 2004/07/15 00:11:37 agriffis Exp $
# Minimal configuration file for rsync daemon
# See rsync(1) and rsyncd.conf(5) man pages for help
# This line is required by the /etc/init.d/rsyncd script
pid file = /var/run/rsyncd.pid
[rsync]
comment = public rsync # simple comment
path = /usr/portage # path to the directory being exported
# read only = yes # make it read only, great for exported
******************************************************************
Вроде всё нормльно, в make.conf прописано
SYNC="rsync:192.168.0.1/rsync", где 192.168.0.1 это ип моей тачки.
Но при попытке засинкиться вот что вылезает:
******************************************************************
cyclon alexandr # emerge sync
>>> starting rsync with rsync://192.168.0.1/rsync...
>>> checking server timestamp ...
@ERROR: chroot failed
rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
rsync error: error in rsync protocol data stream (code 12) at io.c(359)
>>> retry ...
Exiting on signal 2
*******************************************************************
это как на локальной машине так и на любом внешнем клиенте.
А вот что в логах:
*******************************************************************
Jan 15 12:56:34 cyclon rsyncd[11985]: name lookup failed for 192.168.0.2: Name or service not known
Jan 15 12:56:34 cyclon rsyncd[11985]: rsync: chroot /usr/portage # path to the directory being exported failed: No such file or directory (2)
*******************************************************************
Может кто подкинет рабочий конфиг или скажет что не так.
Лучше конечно конфиг, от rsync'а с таким же назначением.
Заранее спасибо!!!
И вот ещё вариант
конфиг
**********************************************************************
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/rsync/files/rsyncd.conf,v 1.3 2004/07/15 00:11:37 agriffis Exp $
# Minimal configuration file for rsync daemon
# See rsync(1) and rsyncd.conf(5) man pages for help
# This line is required by the /etc/init.d/rsyncd script
pid file = /var/run/rsyncd.pid
uid = nobody
gid = nobody
use chroot = no
max connections = 44
syslog facility = local5
[rsync]
comment = public rsync # simple comment
path = /usr/portage # path to the directory being exported
read only = yes # make it read only, great for exported
# directories
**********************************************************************
вывод emerge sync
**********************************************************************
cyclon alexandr # emerge sync
>>> starting rsync with rsync://10.20.1.75/rsync...
>>> checking server timestamp ...
@ERROR: chdir failed
rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
rsync error: error in rsync protocol data stream (code 12) at io.c(359)
>>> retry ...
**********************************************************************
а вот что в логах
***********************************************************************
Jan 15 13:11:58 cyclon rsyncd[11221]: rsync error: received SIGUSR1 or SIGINT (code 20) at rsync.c(239)
Jan 15 13:11:59 cyclon rsyncd[15134]: rsyncd version 2.6.3 starting, listening on port 873
Jan 15 13:12:03 cyclon rsyncd[15159]: Badly formed boolean in configuration file: "yes^I^I# make it read only, great for exported".
Jan 15 13:12:13 cyclon rsyncd[15159]: name lookup failed for 10.20.1.75: Name or service not known
Jan 15 13:12:13 cyclon rsyncd[15159]: rsync: chdir /usr/portage^I# path to the directory being exported failed : No such file or directory (2)
***********************************************************************