BackupPC-users

[BackupPC-users] MOTD breaking rsync...

2010-09-03 16:32:29
Subject: [BackupPC-users] MOTD breaking rsync...
From: RC <cooleyr AT gmail DOT com>
To: backuppc-users AT lists.sourceforge DOT net
Date: Fri, 3 Sep 2010 18:29:53 +0000 (UTC)
BackupPC_dump's method of using rsync seems fragile, and seriously falls down if
the system throws any junk into the SSH login session.  With multiple SCO
systems that throw in the registration* banner below, BackupPC_dump will hang,
forever in fileListReceive().  On a SCO system that does NOT show this banner on
login, BackupPC_dump is working fine.  In either case, rsync from the
command-line works just fine.

*Nothing shady going on here.  Everything is fully licensed.

I'll be happy to do any further debugging or testing changes as needed.  I
attempted to test this bug with a recent CVS snapshot from sourceforge, but
./makeDest dies with a syntax error in bin/BackupPC_dump.

-----------------------------------------------------------------------
$ /usr/share/BackupPC/bin/BackupPC_dump -i -v -v -v scohost
cmdSystemOrEval: about to system /bin/ping -c 1 -w 3 scohost
[...]
CheckHostAlive: returning 0.456
full backup started for directory /stand
started full dump, share=/stand
Running: /usr/bin/ssh root@scohost /usr/local/bin/rsync --server --sender
-vlWHogDtpr --ignore-times . /stand/
Xfer PIDs are now 9023
xferPids 9023
Sending: 1c000000
Rsync command pid is 9023
Fetching remote protocol
Receiving:
0d0a4e4f544943453a20556e726567697374657265642053434f20736f6674776172652069
7320696e7374616c6c6564206f6e20796f75722073797374656d2e20506c656173650d0a20
20202020202020726566657220746f2053434f2773206f6e6c696e652068656c7020666f72
20726567697374726174696f6e20696e666f726d6174696f6e2e0d0a0d0a
Got remote protocol 1330514445
Fatal error (bad version): 
NOTICE: Unregistered SCO software is installed on your system. Please
        refer to SCO's online help for registration information.


Checksum seed is 1162037588
Got checksumSeed 0x45434954
Sending: 00000000
Receiving: 1d000000
Receiving:
e526814c5401000709012ef0000000b33deb46ed41000002000000080a6c6f73742b666f75
6e642000000088788139ff41000000000000010c756e69782e696e7374616c6c63521f0044
b1ff402081000002000000140000000804626f6f74702101002ab1ff400081000002000000
980473666d749a090000c081000098046c696e6be1ce0000008100009e0206626f6f746f73
5f1a000028010000090000009e0603646f735f1a00000900000008036574633000000057b1
ff40fd410000150000000809756e69782e73616665de36180074b1ff402081000014000000
3a0400611a2e00b23deb463a04042e6f6c649b232e00d93ceb4604000b6574632f64656661
756c74400000001c38384cfd4100000000000015000000a80b052f626f6f743c030000a481
00000000000000020000000362696e0000000015000000046175746814000000036d656d02
0000000362696e0000000000000000

[wait an hour, then interrupt with ^C]

fileListReceive() failed
Done: 0 files, 0 bytes
exiting after signal INT
Not saving this as a partial backup since it has fewer files than the prior one
(got 0 and 0 files versus 0)
dump failed: aborted by user (signal=INT)

-----------------------------------------------------------------------


------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
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/