Hi Paul,

thanks for the fast answer!

"Paul Slootman" p...@debian.org – 3. September 2020 16:27
[...]

>> opening connection using: ssh -l root localhost rsync --server --sender 
>> -vvvlHogDtprxe.iLsfxCIvu -B2048 --numeric-ids . /var/lib/lxc (12 args)
> 
> How are you invoking rsync? Please give the exact command line,
> including what you current working directory is.


User is backuppc, working directory is /var/lib/backuppc. Command line:

sh-5.0$ rsync -vvv --rsh=ssh --numeric-ids --perms --owner --group -D --links 
--hard-links --times --block-size 48 \
--recursive --one-file-system root@localhost:/var/lib/lxc /mnt/testrsync/ 
>/mnt/testrsync/stdout.txt 2>/mnt/testrsync/stderr.txt

> Are you actually using ssh to connect to localhost and transferring the
> data over that ssh link?

In this case (2), I issued the command from within a screen session. Here, ssh 
is used internally by rsync (--rsh=ssh). The idea is to change privilege, as 
backuppc is allowed to execute rsync via authorized_keys. Also it is nice that 
the same mechanism works for all hosts to be backed up.

> If so, then these lines are very strange in the case (1) text:
> 
>> Got remote protocol 31
>> Negotiated protocol version 28
> 
> I would expect an rsync to negotiate the highest protocol version
> possible, so this looks like it's talking to a newer version than
> itself.

In contrast to case (2), this case is running from within BackupPC. AFAIK, 
BackupPC_dump directly executes ssh rsync —server —sender … and implements the 
receiving side itself. So, I would conclude that BackupPC_dump implements 
protocol version 28.

>> -- rsync stderr
>> rsync error: errors with program diagnostics (code 13) at log.c(245) 
>> [receiver=3.2.3]
>> rsync: [generator] write error: Broken pipe (32)
>> -- end of stderr
> 
> Because of the "errors with program diagnostics" I would have expected
> more messages...

So did I :-)

> It would be most helpful if you could follow the instructions on
> rsync.samba.org/issues.html especially de second half of
> question 3.

Thanks for the reference, I will try it later.

Andreas.

Reply via email to