BackupPC-users

Re: [BackupPC-users] Fatal error (bad version): OpenSSH_5.0p1

2008-08-04 12:00:57
Subject: Re: [BackupPC-users] Fatal error (bad version): OpenSSH_5.0p1
From: brunal <brunal2496 AT gmail DOT com>
To: Holger Parplies <wbppc AT parplies DOT de>
Date: Mon, 4 Aug 2008 18:00:26 +0200
Thanks so much for your help!

> Can you
>
>       backuppc@backuppc-server% rsync [email protected]:truc.txt tmp/
>
> without any problem, manual interaction or extraneous output?

Yes, it works perfect. No particular output, no needed interactions.

[...]

> You aren't running rsyncd, so the server is "rsync --server" in  
> both cases.
> BackupPC uses File::RsyncP and starts the server over an ssh  
> connection (see
> your log excerpt above). "rsync root@bla:truc.txt tmp/"  
> automatically runs
> "rsync --server ..." over "ssh root@bla". If you want to test the  
> command
> BackupPC runs, try, *as the backuppc user on the BackupPC server*,
>
>       % rsync --numeric-ids --perms --owner --group -D --links --hard-links
> --times --block-size=2048 --recursive --ignore-times  
> [email protected]:/home/temp/ /tmp/anywhere-you-like
>
> Does that work as expected? Does it ask any questions? Does it  
> output anything
> strange? Anything at all?

thanks for this useful-debug-tool-command line!
May I suggest that this command will be added somewhere in the  
Backuppc wiki, in a "check what's wrong" section....

I've tried this command and I get an error about write permission  
[see below], so I change the user from backuppc to root, do the ssh  
key exchange for root, and finally it WORKS! I've changed the user in  
the etc/BackupPC/hosts file, replacing backuppc by root, started a  
backup throught the web interface, and a backup has started. Cool!

So here comes another question :
I get a write permission error coming from the BackupServer because  
the user backuppc on the BackupServer as no write permission on a  
backuped folder. i.e :
root@MainServer%  ls -la /home/
d---r-xr-x  5 bruno   bruno        4096 2007-10-09 14:07 wikiinterne

So when this folder was copied on the BackupServer, the backuppc user  
had no write permission to create the subfolder contained in the  
wikiinterne folder, that's why the backup failed. Of course now that  
it is root the user on the BackupServer, he has all rights to create  
everything.

I believe I will keep running backuppc using the root user on both  
side, but is there a workaround? Because I don't want backuppc to  
have write access on all files on my MainServer...


Anyway thank you so much for your help!
I will keep experiencing after my vacation and I will fill the wiki  
with an "howto install backuppc on a DNS-323 with rsync".

Best regards,
Bruno.


>
> brunal wrote on 2008-08-01 11:20:47 +0200 [Re: [BackupPC-users]  
> Fatal error (bad version): OpenSSH_5.0p1]:
>> Can somebody explain me why source and destination are inverted in
>> the backuppc command, compare to the usual rsync use?
>
> See "rsync basics" above. The command you are referring to starts  
> the server.
> The rsync server command line syntax is of little interest to us.  
> BackupPC
> knows which order the parameters have to be in, so we don't.
>
>> I did the following on 192.168.1.2 :
>> - stop all firewall and protection
>> - allow root to connect by ssh
>
> Please verify that backuppc can 'ssh -l root' without password prompt.
> The rsync command I gave you above does that, but once more: you  
> need to run
> it as the backuppc user.
>
>> I've tried this command in bash :
>> /ffp/bin/ssh -q -x -l root 192.168.1.2 /usr/bin/rsync --server --
>> sender --numeric-ids --perms --owner --group -D --links --hard-links
>> --times --block-size=2048 --recursive --ignore-times . /home/racine/
>> wikiinterne/
>>
>> Nothing happend and the command freeze. Why?
>
> See above.
>
>> I tried this command in a bash, (same as above, wihtout --server --
>> sender) :
>> /ffp/bin/ssh -q -x -l root 192.168.1.2 /usr/bin/rsync --verbose --
>> numeric-ids --perms --owner --group -D --links --hard-links -- 
>> times --
>> block-size=2048 --recursive --ignore-times . /home/racine/wikiinterne
>>
>> It copies all the content of the /root/ folder to the /home/racine/
>> wikiinterne folder, all of this happend on the client, nothing is
>> transfered on the backup server.
>
> That's what it is supposed to do. Neither source (".") nor destination
> ("/home/racine/wikiinterne") are remote, so it's a local copy you  
> requested.
>
> Hope that helps.
>
> Regards,
> Holger


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
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/

<Prev in Thread] Current Thread [Next in Thread>