Hi Orazio, that patch looks old ... some of the corrections were already
applied in 3.3.1, attached my Smb.pm with the corrections that make
backups work for the same samba and backuppc version as yours, replace
it (backup first, of course) and give it a try.
The two lines that matter...
233 } elsif ( /^\s*tar: dumped \d+ files/
234|| /Total bytes received: \d+/i
Neimar
Em 22/07/2016 04:06, Orazio Di nino escreveu:
Hello,
I'm not very experienced, how do I apply the patch? My version of
Samba is 4.3.9, and 3.3.1 backuppc.
thank you
Orazio
Il 05/07/2016 18:21, Oliver Freyd ha scritto:
Hello,
here's the patch to make smbclient 4.2.10 work with backuppc:
diff -u Backuppc3.2.1/lib/BackupPC/Xfer/Smb.pm
BackupPC3/lib/BackupPC/Xfer/Smb.pm
--- Backuppc3.2.1/lib/BackupPC/Xfer/Smb.pm 2012-11-09
18:37:14.0 +0100
+++ BackupPC3/lib/BackupPC/Xfer/Smb.pm 2016-07-01 13:56:10.162250854 +0200
@@ -230,7 +230,9 @@
$t->{byteCnt} += $2;
$t->{fileCnt}++;
$t->{XferLOG}->write(\"$_\n") if ( $t->{logLevel} >= 1 );
-} elsif ( /^\s*tar: dumped \d+ files/ ) {
+} elsif ( /^\s*tar: dumped \d+ files/
+ || /Total bytes received: \d+/i
+) {
$t->{xferOK} = 1;
$t->{XferLOG}->write(\"$_\n") if ( $t->{logLevel} >= 0 );
} elsif ( /^\s*tar: restored \d+ files/ ) {
@@ -239,7 +241,7 @@
} elsif ( /^\s*read_socket_with_timeout: timeout read. /i ) {
$t->{hostAbort} = 1;
$t->{XferLOG}->write(\"$_\n") if ( $t->{logLevel} >= 0 );
-} elsif ( /^code 0 listing /
+} elsif ( /^code 0 listing /
|| /^\s*code 0 opening /
|| /^\s*abandoning restore/i
|| /^\s*Error: Looping in FIND_NEXT/i
@@ -270,6 +272,7 @@
} elsif ( /^\s*directory \\/i ) {
$t->{XferLOG}->write(\"$_\n") if ( $t->{logLevel} >= 2 );
} elsif ( /smb: \\>/
+|| /^\s*tar:\d+/
|| /^\s*added interface/i
|| /^\s*tarmode is now/i
|| /^\s*Total bytes written/i
As you see The first chunk accept the message "total bytes received"
as success, the last chunk ignores the other messages that start with
"tar:linenumber".
Sadly smbclient does no more send the number of files transmitted, so
one has to put
$Conf{BackupZeroFilesIsFatal} = 0;
into the config and live without this check.
That's it for now,
Oliver
Am 02.07.2016 um 18:08 schrieb megaram:
Could you please link how to patch the smb.pm ?
+--
|This was sent bym...@megaram-group.de via Backup Central.
|Forward SPAM toab...@backupcentral.com.
+--
--
Attend Shape: An AT Tech Expo July 15-16. Meet us at AT Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project:http://backuppc.sourceforge.net/
--
Attend Shape: An AT Tech Expo July 15-16. Meet us at AT Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project:http://backuppc.sourceforge.net/
--
TecnoSistemi S.r.l.
Servizi informatici per Aziende e Studi
Orazio Di nino
Viale della Repubblica, 70 c/o Sviluppo Italia - 67039 Sulmona (AQ)
( Tel: 800194055 +39 0864 2508313 +39 0864 578509 7 Fax: +39 0864 2508312
--
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports.http://sdm.link/zohodev2dev
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List: