Hi All,

I'm trying to set up rsyncd to work on a MacBook Pro (Tiger/10.4.7), 
rsync v 2.6.3.  I have gotten it to work fine via rsync with shared 
ssh keys on another Powerbook, but the rsyncd version is more 
attractive because of the rsyncd.secrets file (no need to set up 
another user or to require the user to allow a remote login with his 
key.  The first is too much keyboard/mouse time; the second is a 
security hole and will be actively resisted by the user base.

The client's rsyncd.conf file is:
---
auth users = wheel, backuppc
secrets file = /etc/rsyncd.secrets
strict modes = true
use chroot = no
max verbosity = 10

[etc]
        /private/etc

[homes]
        /Users

[preferences]
        /Library/Preferences
------------------------------------------------
and /etc/rsyncd.secrets file allows the backuppc user in.
On the server side, the relevant lines from the client config are:

# do these 2 actually do anything if method is rsyncd?
$Conf{BackupFilesOnly} = ['/private/etc', '/Users'];
$Conf{BackupFilesExclude} = undef;

$Conf{XferMethod} = 'rsyncd';
$Conf{XferLogLevel} = 1;
$Conf{RsyncClientPath} = '/usr/bin/rsync';
$Conf{RsyncClientCmd} = '$sshPath -q -x -l root $host nice -n 19 
$rsyncPath $argList+';
$Conf{RsyncClientRestoreCmd} = '$sshPath -q -x -l root $host nice -n 
19 $rsyncPath $argList+';

$Conf{RsyncShareName} = 'etc', 'homes', 'preferences';
$Conf{RsyncdClientPort} = 873;
$Conf{RsyncdUserName} = 'backuppc';
$Conf{RsyncdPasswd} = 'likearollingstone'; # wheel
$Conf{RsyncdAuthRequired} = 1;
$Conf{RsyncCsumCacheVerifyProb} = 0.01;

$Conf{RsyncArgs} and $Conf{RsyncRestoreArgs} are not edited

When I try to run the backup from the server, it implies a good login 
(confirmed by the syslog) and then:
 ...
2006-07-11 10:22:44 full backup started for directory etc
2006-07-11 10:22:45 Got fatal error during xfer (chdir failed)
2006-07-11 10:22:50 Backup aborted (chdir failed)

Googling til my fingers bleed reveal little on this error.

The syslog also reveals:
Jul 11 10:22:40 bongo rsyncd[1261]: params.c:Parameter() - Ignoring 
badly formed line in configuration file: /private/etc\n
Jul 11 10:22:40 bongo rsyncd[1261]: params.c:Parameter() - Ignoring 
badly formed line in configuration file: /Users\n
Jul 11 10:22:40 bongo rsyncd[1261]: params.c:Parameter() - Ignoring 
badly formed line in configuration file: /Library/Preferences\n

I edited the files with joe - is the std newline (\n) still verboten 
on Apples?

-- 
Harry Mangalam - Research [EMAIL PROTECTED], E2148, Engineering Gateway, 
UC Irvine 92697  949 824 0084(o), 949 285 4487(c) 
[EMAIL PROTECTED]


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Reply via email to