BackupPC-users

Re: [BackupPC-users] rsync --server --sender does not work.

2010-08-23 09:22:24
Subject: Re: [BackupPC-users] rsync --server --sender does not work.
From: Xuo <xuoy AT free DOT fr>
To: "General list for user discussion, questions and support" <backuppc-users AT lists.sourceforge DOT net>
Date: Mon, 23 Aug 2010 15:19:39 +0200
 Le 22/08/2010 23:38, Les Mikesell a écrit :
> On 8/22/10 11:59 AM, Xuo wrote:
>>   Le 22/08/2010 18:07, Les Mikesell a écrit :
>>> On 8/22/10 10:24 AM, Xuo wrote:
>>>>    Hi,
>>>>
>>>> I try to use backuppc with rsync to backup files of one client (ordi3)
>>>> onto the backuppc server (ordi4) .
>>>> I get the following error message :
>>>>
>>>> 2010-08-21 20:48:14 Got fatal error during xfer (Child exited prematurely)
>>>> 2010-08-21 20:48:19 Backup aborted (Child exited prematurely)
>>>> 2010-08-21 20:48:19 Saved partial dump 0
>>>>
>>>> To debug, I tried to run the same command manually from the server
>>>> backuppc account (I do not have permission to run ssh as root user, nor
>>>> from the server, neither from the client).
>>>>
>>>> /usr/bin/ssh -q -x -l backuppc ordi3 sudo /usr/bin/rsync --server
>>>> --sender --numeric-ids --perms --owner --group -D --links --hard-links
>>>> --times --block-size=2048 --recursive --ignore-times . /
>>>>
>>>> Nothing happens. The command does not do anything. I do not have any
>>>> error message. I need to Ctrl-C to stop it.
>>>>
>>>> To debug again, I run the command without the --server and --sender 
>>>> options.
>>>>
>>>>>  From the server, I ran :
>>>> /usr/bin/ssh -q -x -l backuppc ordi3 sudo /usr/bin/rsync  --numeric-ids
>>>> --perms --owner --group -D --links --hard-links --times
>>>> --block-size=2048 --recursive --ignore-times -av /home/eric/tmp/sources
>>>> ./tmp
>>>>
>>>> Then files are successfully copied locally onto ordi3 (the client)
>>>> without being prompted for any password.
>>>>
>>>>>  From the client, I ran :
>>>> /usr/bin/ssh -q -x -l backuppc ordi4 sudo /usr/bin/rsync --numeric-ids
>>>> --perms --owner --group -D --links --hard-links --times
>>>> --block-size=2048 --recursive --ignore-times -av /var/lib/backuppc
>>>> /tmp/tmpbck
>>>>
>>>> Then files are successfully copied locally onto ordi4 (the server)
>>>> without being prompted for any password.
>>>>
>>>> It means that there is someting wrong with the --server and --sender
>>>> options but I don't know what.
>>>>
>>>> Does anybody have any idea to solve the problem.
>>> The --server and --sender options aren't something you use with a normal 
>>> rsync
>>> command.  They are internally passed from the local to remote instance - you
>>> just see them in backuppc because the rsync is implemented internally in 
>>> perl.
>>>
>>> Did you get any files in that partial backup run?  If so, you might have a
>>> network problem or something causing the remote rsync to hang.
>> Hi,
>>
>> No, I do not have any partial backup at all.
>> Then it could be permissions problem for example.
>> Which user is running the rsync command from the server. Is it the user
>> 'backuppc' or 'root' ?
>>
> It runs as backuppc on the server side (thus using the private side of the 
> key 
> belonging to the backuppc user).   Normally it passes '-l root' in the 
> command 
> to run as root on the remote side, unless you've made some changes to run as 
> a 
> normal user or use the sudo command to become root on the remote.
>
Thank you for your help, now everything works fine.

Regards.

Xuo.

------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/