Ok, thanks for your informations Toni.
It's nice.

For the moment I can connect to the BackupPC server (via SSH) from the 
Windows client but I can't do the reverse.

When I try to do a Backup via "rsync" :

=================================================================================================================================================================
Fichier /data/BackupPC/pc/vsds-mov-w0316/XferLOG.bad.z 
Contenu du fichier /data/BackupPC/pc/vsds-mov-w0316/XferLOG.bad.z, modifié 
le 2007-10-05 14:21:59 
full backup started for directory /c/test (baseline backup #58)
Running: /usr/bin/ssh -q -x -l root vsds-mov-w0316 /usr/bin/rsync --server 
--sender --numeric-ids --perms --owner --group -D --links --hard-links 
--times --block-size=2048 --recursive --ignore-times . /c/test/
Xfer PIDs are now 3770
Read EOF: Connexion ré-initialisée par le correspondant
Tried again: got 0 bytes
Done: 0 files, 0 bytes
Got fatal error during xfer (Unable to read 4 bytes)
Backup aborted (Unable to read 4 bytes)
=================================================================================================================================================================

When I try to do a Backup via "rsyncd" :

=================================================================================================================================================================
Fichier /data/BackupPC/pc/vsds-mov-w0316/XferLOG.bad.z 
Contenu du fichier /data/BackupPC/pc/vsds-mov-w0316/XferLOG.bad.z, modifié 
le 2007-10-05 14:23:50 
full backup started for directory /c/test (baseline backup #58)
Connected to vsds-mov-w0316:873, remote version 29
Negotiated protocol version 28
Error connecting to module /c/test/ at vsds-mov-w0316:873: Unknown module 
'/c/test/'
Got fatal error during xfer (Unknown module '/c/test/')
Backup aborted (Unknown module '/c/test/')
=================================================================================================================================================================
Have you got some explanations ?
Thanks for your help.
Romain





Toni Van Remortel <[EMAIL PROTECTED]> 
Envoyé par : [EMAIL PROTECTED]
05/10/2007 14:27

A
[email protected]
cc

Objet
Re: [BackupPC-users] Using Rsync with SSH






[EMAIL PROTECTED] wrote:
> I would like to have some informations about this connection via ssh.
> I know that it's possible to establish this connection either by
> password or by public/private keys. But is it necessary to enter the
> password every time, with each connection, or to configure for each
> Windows client (in my case) the public / private key and relate them
> with the SSH server ?

This is how I add a ssh-based client to my backup system:
* On the backup server, the user backuppc generates a ssh-key 
(ssh-keygen -t rsa -f clientname) inside .ssh of the backuppc home 
directory. Passphrase is empty.
* On the backup server, the file .ssh/config belonging to the backuppc 
user is updated with some needed info for the client (user to connect, 
ssh-key to use, port to use, ...)
* The key is copied to the client (ssh-copyid -i clientname.pub 
client.domain.com) This action will ask if you trust this host. Answer 
'yes' to add it to the know_hosts list.

Finished. The user 'backuppc' has now root access to the client through 
SSH. Setting up BackupPC is now the most easy part: use rsync, set the 
clients directories to backup. Done.

Why do I use a separate key for every client? Security! If someone can 
get 1 private key from my backup server, he/she can only connect to 1 
client instead of all my clients (70 at this moment).
Yes it is a bit more work, but security is always more work.

Good luck.
-- 
Toni Van Remortel
[EMAIL PROTECTED]

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
BackupPC-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/



 
SC2N -S.A  Siège Social : 2, Rue Andre Boulle - 94000 Créteil  - 327 153 
722 RCS Créteil

 

"This e-mail message is intended only for the use of the intended
recipient(s).
The information contained therein may be confidential or privileged, and
its disclosure or reproduction is strictly prohibited.
If you are not the intended recipient, please return it immediately to its
sender at the above address and destroy it."

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
BackupPC-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Reply via email to