Hi All,

Thanks to Ambrose Li for spotting my stupid editing mistake - the 
rsyncd modules require a 'path = ' prefix to the directories to back 
up.  I can now rsync from the backuppc server to the client Mac from 
the commandline, using the rsyncd method, but the backuppc-driven 
backup is still failing.  I increased the log level to 10 and got 
this log which has lots of text, but is largely uninformative to me.  
(Long lines have been wrapped with '\'.

The only thing I can see that makes some sense is that somewhere in 
the process, the following '--exclude' flags are being sent in the 
args line:

--exclude=/* \
 --exclude=/private/* 

which are in neither the client config file nor the config.pl file.  
Those lines would seem to exclude everything, if they work like I 
assume.

=============================================
File /var/lib/backuppc/pc/bongo/XferLOG.bad
 Contents of file /var/lib/backuppc/pc/bongo/XferLOG.bad, modified 
2006-07-12 09:50:04
Receiving: 405253594e43443a2032380a
Connected to bongo:873, remote version 28
Sending: 405253594e43443a2032360a
Sending: 686f6d65730a
Receiving: 
405253594e43443a20415554485245514420682b796f4431745a564d36336e7271536b702f5849410a
Got response: 2c1700213b9217d7e5c3d439520f3584
in mime: LBcAITuSF9flw9Q5Ug81hA
Sending: 686a6d204c426341495475534639666c773951355567383168410a
Auth: got challenge: h+yoD1tZVM63nrqSkp/XIA, reply: hjm 
LBcAITuSF9flw9Q5Ug81hA
Receiving: 405253594e43443a204f4b0a
Connected to module homes
Sending: 
2d2d7365727665720a2d2d73656e6465720a2d2d6e756d657269632d6964730a2\
d2d7065726d730a2d2d6f776e65720a2d2d67726f75700a2d440a2d2d6c696e6b\
730a2d2d74696d65730a2d2d626c6f636b2d73697a653d323034380a2d2d72656\
37572736976650a2d2d696e636c7564653d2f707269766174650a2d2d696e636c\
7564653d2f707269766174652f6574630a2d2d696e636c7564653d2f5573657273\
0a2d2d6578636c7564653d2f2a0a2d2d6578636c7564653d2f707269766174652f\
2a0a2d2d69676e6f72652d74696d65730a2e0a2e0a0a
Sending 
args: --server --sender --numeric-ids --perms --owner --group -D \
 --links --times --block-size=2048 --recursive --include=/private \
 --include=/private/etc --include=/Users --exclude=/* \
 --exclude=/private/* --ignore-times . .
Receiving: 3128b544
Checksum seed is 1152722993
Got checksumSeed 0x44b52831
Receiving: 1800000709012ecc0000009f259844fd430000500000000000000000
Got file (0 of 1): .
Got file list: 1 entries
Child PID is 10797
Xfer PIDs are now 10797
Sending csums, cnt = 1, phase = 0
Sending: ffffffff
Sending csums, cnt = 0, phase = 1
pollChild()
Receiving: 04000007ffffffff
pollChild()
attribSet(dir=, file=homes)
pollChild()
  create d1775      0/80         204 .
pollChild()
makePath(/var/lib/backuppc/pc/bongo/new//fhomes/, 0777)
pollChild()
attribSet(dir=, file=homes)
pollChild()
Finished deltaGet phase 0
pollChild()
Child is sending done
pollChild()
Got done from child
Sending: ffffffff
pollChild()
Receiving: 04000007ffffffff
pollChild()
Finished deltaGet phase 1
pollChild()
Receiving: 0c000007130100006500000000000000
pollChild()
Got stats: 275 101 0 0 ('errorCnt' => 0,'ExistFileSize' => 
0,'ExistFileCnt' => 0,'TotalFileCnt' => 0,'ExistFileCompSize' => 
0,'TotalFileSize' => 0)
Sending: ffffffff
attribWrite(dir=) -> /var/lib/backuppc/pc/bongo/new//attrib
pollChild()
Got exit from child
Done: 0 files, 0 bytes
Got fatal error during xfer (No files dumped for share homes)
Backup aborted (No files dumped for share homes)




On Tuesday 11 July 2006 08:03, Harry Mangalam wrote:
> 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