Daniel, and all smeserver-backuppc-3.0-0 users,
This looks great.... now, if only I can get backuppc to authenticate to the rsyncd on my 'Windows XP Home' machines. Please tell me if any of you can help, or if I must take this up with the BackupPC project.
I am running smeserver-backuppc-3.0-0 on SME 7.1.3. It runs the local default backup job just fine.
A commandline rsync test works fine from my SME server to a 'Windows XP Home' box running the rsyncd packaged from the BackupPC sourceforge site: cygwin-rsyncd-2.6.8_0.zip. (rsyncd was run from the Windows command line, I'll leave my troubles with running as a service for another post).
[root@mail3 tmp]# rsync -av backup@192.168.111.40::test .
Password:
receiving file list ... done
... <snip> ...
sent 391 bytes received 2241522 bytes 407620.55 bytes/sec
total size is 2240235 speedup is 1.00
When I try a BackupPC job, it logs this error:
2007-05-21 21:55:53 User admin requested backup of markseymour (markseymour)
2007-05-21 21:55:54 Started full backup on markseymour (pid=9448, share=test)
2007-05-21 21:56:02 Backup failed on markseymour (auth failed on module test)
and the rsyncd.log on the Windows machine says:
2007/05/21 21:56:45 [3332] connect from mail3.guildassociates.com (192.168.111.1)
2007/05/21 21:56:45 [3332] auth failed on module test from mail3.guildassociates.com (192.168.111.1): unauthorized user
The rsyncd.secrets file on Windows contains:
backup:<password>
admin:<same password>
I'm confident that the password is correct because I used the Windows clipboard in both instances to paste it into both the RsyncdPasswd of the BackupPC panel, and into a putty window for the commandline test.
1) Have others here succeeded backing up 'Windows XP Home', or for that matter, 'Windows XP Pro' via rsyncd/smeserver-backuppc?
2) Any clues for me?
Thanks,
Mark
(I do have ClientCharset set to cp1252.)
Ok, I understand your problem now. In fact, I haven't tested rsyncd since I release 3.0, and I thought it was exactly the same as the previous version. In fact, there's a bug in the CGI of 3.0 which prevent to configure the rsyncdUsername in the per-pc config. You have two solutions:
- you set rsyncd as the default backup method, you set a username in the global configuration and you always use this username on all your hosts
- or you fix the bug like this:
edit the file /usr/local/BackupPC/lib/BackupPC/Config/Meta.pm
and, just after this line:
RsyncdPasswd => "string",
Add this:
RsyncdUserName => "string",
And in /etc/BackupPC/config.pl
add this:
'RsyncdUserName' => '1',
just after
'RsyncdPasswd' =>'1',
Then you should be able to set the rsyncdUserName in the per-pc configuration file.
Cheers.