William McInnis writes:

> ok it always shows failed even though all the files are there and there is 
> nothen in the logs here is a copy of the error log and xfer log
> 
> Contents of file /backup//pc/mysql/XferLOG.0, modified 2006-11-13 06:05:59 
> (Extracting only Errors)
> 
> Running: /usr/bin/smbclient \\\\mysql\\mysql -U root -E -N -d 1 -c tarmode\ 
> full -Tc -
> full backup started for share mysql
> Xfer PIDs are now 26838,26837
> [ skipped 20 lines ]
> tarExtract: Done: 0 errors, 0 filesExist, 0 sizeExist, 0 sizeExistComp, 8 
> filesTotal, 5789605946 sizeTotal
> Backup aborted ()
> 
> mysql
> mysql Home Browse backups LOG file LOG files Edit Config
> File /backup//pc/mysql/XferLOG.0
> 
> Contents of file /backup//pc/mysql/XferLOG.0, modified 2006-11-13 06:05:59
> 
> Running: /usr/bin/smbclient \\\\mysql\\mysql -U root -E -N -d 1 -c tarmode\ 
> full -Tc -
> full backup started for share mysql
> Xfer PIDs are now 26838,26837
> Domain=[MYSQL] OS=[Unix] Server=[Samba 3.0.10-1.4E.9]
> tarmode is now full, system, hidden, noreset, verbose
>    758680493 (16166.2 kb/s) \2006-11-07.sql
>    609954502 (15984.4 kb/s) \2006-08-20.sql
>    760023513 (16054.7 kb/s) \2006-11-08.sql
>    762350752 (15964.7 kb/s) \2006-11-10.sql
>    761186539 (16195.3 kb/s) \2006-11-09.sql
>    763809551 (16100.2 kb/s) \2006-11-12.sql
>    610626581 (15971.2 kb/s) \2006-08-21.sql
>    762974015 (16181.5 kb/s) \2006-11-11.sql
> tar: dumped 8 files and directories
> Total bytes written: 5789607936
>   create   644       0/0   758680493 2006-11-07.sql
>   create   644       0/0   609954502 2006-08-20.sql
>   create   644       0/0   760023513 2006-11-08.sql
>   create   644       0/0   762350752 2006-11-10.sql
>   create   644       0/0   761186539 2006-11-09.sql
>   create   644       0/0   763809551 2006-11-12.sql
>   create   644       0/0   610626581 2006-08-21.sql
>   create   644       0/0   762974015 2006-11-11.sql
> tarExtract: Done: 0 errors, 0 filesExist, 0 sizeExist, 0 sizeExistComp, 8 
> filesTotal, 5789605946 sizeTotal
> Backup aborted ()

I can't explain this.  If you look at lib/BackupPC/Xfer/Smb.pm
you will see this code:

        } elsif ( /^\s*tar: dumped \d+ files/ ) {
            $t->{xferOK} = 1;
            $t->{XferLOG}->write(\"$_\n") if ( $t->{logLevel} >= 0 );
        } ....

So the string "tar: dumped 8 files and directories" from smbclient
should make BackupPC_dump think the xfer is ok.

After that, there are several places in BackupPC_dump that could
reset xferOK (eg: no files dumped, but that doesn't apply to you).
Most cases should produce an error that would appear in the 
"Backup aborted ()" message.  The empty parens mean that $hostErr
is empty.  Perhaps the "tar: dumped 8 files and directories" is
not matched for some reason.

If you can program in perl I would recommend adding some debug
statements to see why it fails.

Craig

-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Reply via email to