What's happening now here?

Boniforti Flavio flavio at piramide.ch
Wed Feb 18 13:46:43 GMT 2009

Hello list.

I'm doing nightly syncs over SSH with rsnapshot, and now rsync gives me
strange errors, like:

rsync: failed to connect to localhost: Connection refused (111)
rsync error: error in socket IO (code 10) at clientserver.c(122)
rsnapshot encountered an error! The program was invoked with these
/usr/bin/rsnapshot -c /root/ssh-omv.conf daily
ERROR: /usr/bin/rsync returned 10 while processing localhost::profilo/

The command-line statement is:

ssh -f administrator at remotehost.com -L 8874: sleep 10;
rsnapshot -c /root/ssh-omv.conf daily > /var/log/rsnapshot/OMV-$(date

>From my Linux server (Debian Lenny) I'm opening an SSH tunnel and then
start rsnapshot over it. The remote computer is a Windows 2003 SBS
Server, on which I'm running copssh and cwrsync server, where in the
rsyncd.conf only two "modules" are listed:

use chroot = false
strict modes = false
hosts allow =
log file = rsyncd.log

# Module definitions
# Remember cygwin naming conventions : c:\work becomes /cygwin/c/work
path = /cygdrive/d/data
read only = true
transfer logging = yes

path = /cygdrive/d/Profilo
read only = true
transfer logging = yes

In the ssh-omv.conf file I have in the end:

backup  localhost::data/        data/
backup  localhost::profilo/     profilo/

The logfile shows:

/usr/bin/rsync -rtzv --port=8874 --delete --ignore-errors --numeric-ids
    --delete-excluded --stats --progress localhost::data/ \
receiving incremental file list


Number of files: 3896
Number of files transferred: 11
Total file size: 9930835984 bytes
Total transferred file size: 555046488 bytes
Literal data: 4548996 bytes
Matched data: 550497492 bytes
File list size: 98721
File list generation time: 0.265 seconds
File list transfer time: 0.000 seconds
Total bytes sent: 173496
Total bytes received: 883517

sent 173496 bytes  received 883517 bytes  3141.20 bytes/sec
total size is 9930835984  speedup is 9395.19
/usr/bin/rsync -rtzv --port=8874 --delete --ignore-errors --numeric-ids
    --delete-excluded --stats --progress localhost::profilo/ \
/usr/bin/logger -i -p user.err -t rsnapshot /usr/bin/rsnapshot -c \
    /root/ssh-omv.conf daily: ERROR: /usr/bin/rsync returned 10 while \
    processing localhost::profilo/
touch /mnt/remote/Omv/daily.0/
rm -f /var/run/omv.pid
/usr/bin/logger -i -p user.err -t rsnapshot /usr/bin/rsnapshot -c \
    /root/ssh-omv.conf daily: ERROR: /usr/bin/rsnapshot -c \
    /root/ssh-omv.conf daily: completed, but with some errors

The strange thing is that if I comment the "data" backup line in the
rsnapshot configuration, the "profile" module gets backed up!
What may be happening?

Thanks in advance,
Flavio Boniforti

Via Ballerini 21
6600 Locarno
Phone: +41 91 751 68 81
Fax: +41 91 751 69 14
Url: http://www.piramide.ch
E-mail: flavio at piramide.ch 

More information about the rsync mailing list