BackupPC-users

Re: [BackupPC-users] backup localhost with rsync (root's password problem)

2008-05-05 03:05:53
Subject: Re: [BackupPC-users] backup localhost with rsync (root's password problem)
From: <romain.pichard AT valeo DOT com>
To: backuppc-users AT lists.sourceforge DOT net, backuppc-users-bounces AT lists.sourceforge DOT net
Date: Mon, 5 May 2008 09:05:38 +0200
Hello,

Thanks a lot for your answer Daniel.
I tried to do that you explained but it doesn't work : I've got this error
message (via the web interface) :

la sauvegarde a échoué (fileListReceive failed)

However, if I keep the default RsyncClientCmd I've got this error message :

Unable to read 4 bytes

I don't understand... I'll try to back up another directory (different that
/home)

Thanks a lot you for help.

Romain



                                                                       
             Daniel Berteaud                                           
             <daniel@firewall-                                         
             services.com>                                               A
             Envoyé par :              backuppc-users AT lists.sourceforge DOT 
ne
             backuppc-users-bo         t                               
             [email protected]                                          cc
             eforge.net                                                
                                                                     Objet
                                       Re: [BackupPC-users] backup     
             30/04/2008 16:26          localhost with rsync (root's    
                                       password    problem)            
                                                                       
                                                                       
                                                                       
                                                                       
                                                                       
                                                                       




Le mercredi 30 avril 2008 à 16:12 +0200, romain.pichard AT valeo DOT com a
écrit :
> Hello all,
>
> In fact, I want to back up my BackupPC server (localhost with Fedora Core
> 6) by using rsync.
> When I want to do this via the web interface, I write "Unable to read 4
> bytes..".
> However, when I run "/usr/local/BackupPC/bin/BackupPC_dump -v -f
localhost"
> in a console
> it's work but it asks me the root's password.
> Consequently, I have to enter the password manually and it's ok.

The default rsync command uses rsync over ssh. For the localhost, SSH
isn't need. Edit the RsyncCLientCmd for this host, and put something
like this:

/usr/bin/sudo $rsyncPath $argList+

(idem for the restore command)

Then allow backuppc user to run rsync with sudo without password
(visudo)

it'll be a lign like this:

backuppc ALL=(root) NOPASSWD:/usr/bin/rsync


>
> So how to configure this password via the web interface ?
>
> Thanks a lot for your help.
>
> Romain
>
> 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 the 2008 JavaOne(SM) Conference
> Don't miss this year's exciting event. There's still time to save $100.
> Use priority code J8TL2D2.
>
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone

> _______________________________________________
> 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/
--
Daniel Berteaud
FIREWALL-SERVICES SARL.
Société de Services en Logiciels Libres
Technopôle Montesquieu
33650 MARTILLAC
Tel : 05 56 64 15 32
Fax : 05 56 64 15 32
Mail: daniel AT Firewall-Services DOT com
Web : http://www.firewall-services.com


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone

_______________________________________________
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/



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 the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
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>