Hi All, I think I have solved the problem... Following instructions on the backuppc configuration documentation, I created the following per-pc config.pl for my linux client (wisla):
do "../conf/config.pl"; $Conf{XferMethod} = 'rsync'; $Conf{RsyncClientPath} = '/usr/bin/rsync'; $Conf{RsyncClientCmd} = '$sshPath -q -x -l root $host $rsyncPath $argList+'; $Conf{RsyncClientRestoreCmd} = '$sshPath -q -x l root $host $rsyncPath $argList+'; $Conf{RsyncShareName} = [ '/var/lib/asterisk/agi-bin', '/usr/local/apache2/htdocs', '/etc/asterisk', '/home/voip', '/var/log/asterisk', '/home/voip/dbbackup', '/var/spool/asterisk/voicemail', '/var/spool/asterisk/monitor', '/var/spool/asterisk/fax' ]; $Conf{RsyncArgs} = [ '--verbose', '--numeric-ids', '--perms', '--owner', '--group', '--devices', '--links', '--times', '--block-size=2048', '--recursive' ]; $Conf{RsyncRestoreArgs} = [ '--numeric-ids', '--perms', '--owner', '--group', '--devices', '--links', '--times', '--block-size=2048', '--relative', '--ignore-times', '--recursive' ]; But for some reason, it seemed that $argList in: $Conf{RsyncClientCmd} = '$sshPath -q -x -l root $host $rsyncPath $argList+' was replaced with the restoreArgs rather than the rsyncArgs listed above (see the error msg in my first email below). So after commenting the restore variables $Conf{RsyncClientRestoreCmd} and $Conf{RsyncRestoreArgs}, I was able to backup. However, anyone have any idea why this happened? Kindly, Khaled Hussain Server Administrator Coulomb Ltd 020 8114 1013 -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Khaled Hussain Sent: 16 January 2006 15:31 To: [EMAIL PROTECTED] Sourceforge. Net Subject: [BackupPC-users] Unable to read 4 bytes error Hi, I am trying to set up the rsync XferMethod to backup a linux (Mandrake) machine. - I have added the host to the hosts list - created a config.pl file that overrides the general smb method config - set up openssh on the client and server according to the backuppc documentation I cannot understand why this appears on the Xfer Log when I try to backup: Running: /usr/bin/ssh -q -x -l root wisla /usr/bin/rsync --server --sender --verbose --numeric-ids --perms --owner --g roup --devices --links --times --block-size=2048 --recursive --ignore-times . /var/lib/asterisk/agi-bin/ Xfer PIDs are now 18527 Read EOF: Connection reset by peer 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) Any ideas anyone please? I am used to setting up rsyncd and smb and am using rsync as a last resort method now. Kind Regards Khaled Hussain Server Administrator Coulomb Ltd 020 8114 1013 ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/backuppc-users http://backuppc.sourceforge.net/ ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/backuppc-users http://backuppc.sourceforge.net/