BackupPC-users

Re: [BackupPC-users] Issue with samba client 4.1.6 and newer

2016-01-19 05:45:07
Subject: Re: [BackupPC-users] Issue with samba client 4.1.6 and newer
From: Otto Wincrantz <owincran AT tibco DOT com>
To: "General list for user discussion, questions and support" <backuppc-users AT lists.sourceforge DOT net>
Date: Tue, 19 Jan 2016 11:12:27 +0100
Thank you for your efforts David. 
I've implemented the patch and it works in my environment, backups complete ok and I can do sucessfull restores. :-)
But as you say, the system thinks 0 files got backed up:

2016-01-19 09:48:39 full backup started for share Backups
2016-01-19 10:58:59 full backup 75 complete, 0 files, 0 bytes, 0 xferErrs (0 bad files, 0 bad shares, 0 other)


On Fri, Jan 15, 2016 at 11:57 PM, David Cramblett <david AT functionalchaos DOT net> wrote:
It's looks as though it may be more than RegEx issues. I looked the RegEx lines over in Smb.pm and could see some changes were needed, but those alone are not the only problem. It also looks like BackupPC expects a line of output for each file that is transferred with smbtar. The new version of smbclient is only dumping three lines:

Domain=[HOST] OS=[Windows Server 2012 R2 Standard 9600] Server=[Windows Server 2012 R2 Standard 6.3]
tar:322  tarmode is now full, system, hidden, noreset, verbose
tar:800  Total bytes received: 463398359

If you update your Smb.pm per this patch: https://bugzilla.redhat.com/show_bug.cgi?id=1294761 You can get BackupPC to read the new style lines properly. However, without the (missing) output lines for each file being transfered, $t->{fileCnt} is never incremented, and thus is 0 after the transfer.

This results in:

if ( $newStat->{fileCnt} == 0 ) {
       $noFilesErr ||= "No files dumped for share $shareName";
}

I'm having a hard time finding an example of what the tarmode verbose output used to look like, and also how to get (actual) verbose output from the new smbclient.

David







On Mon, Jan 4, 2016 at 5:19 AM, Micha Silver <micha AT arava.co DOT il> wrote:
Thanks for verifying. I hope someone with good regex skills will work out a solution. It seems newer samba versions return results formatted slightly differently, so parsing fails.
There is a config setting:  $Conf{BackupZeroFilesIsFatal} = 1; (Under "Schedule").
I have changed this to '0' so that even tho' I get the warning, the "partial" backup is still saved.


On 01/04/2016 11:14 AM, Otto Wincrantz wrote:
Hi,

For the record I am experiencing the same issue as you are seeing with a BP install on a CentOS 7.2 with smbclient 4.2.3.
Backups are working for the 1st share listed in the job, but BackupPC reports them as failed with "backup failed (No files dumped for share backuppc$)"

A resolution would be most welcome...

Cheers,

Otto


On Mon, Dec 28, 2015 at 2:58 PM, Micha Silver <micha AT arava.co DOT il> wrote:
On 27/12/2015 20:26, pasci wrote:
I tried to add the "verbose" option, and I'm still getting a failure: 
Missunderstanding - The verbose option is only ONE of TWO required changes. The second one is to fix the regex of Smb.pm. Because my know how to create a new filter is really bad, I can't publish the solution for this (I've tried, but is still not working). Perhaps someone else has an idea/fixed regex?

OK, I got it now.
So this problem parsing the output of smbclient affect both versions 3.x and 4.x of BackupPC.
Quite a show stopper.


+----------------------------------------------------------------------
|This was sent by p.kuenzli AT pk-its DOT com via Backup Central.
|Forward SPAM to abuse AT backupcentral DOT com.
+----------------------------------------------------------------------



------------------------------------------------------------------------------
_______________________________________________
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/

This mail was received via Mail-SeCure System.




--
Micha Silver
Arava Drainage Authority
cell: +972-523-665918

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

_______________________________________________
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/




--
Otto Wincrantz
EMEA IT Manager
O  +46 31 7504815  |  M  +46 733 525862  |  E  owincran AT tibco DOT com |
TIBCO Software  Första Långgatan 26 41328 Gothenburg, Sweden |  www.tibco.com      |
 
 
 
The information transmitted in this electronic communication is intended only for the person or entity to whom it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited.

This mail was received via Mail-SeCure System.


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

This mail was received via Mail-SeCure System.




_______________________________________________
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/

This mail was received via Mail-SeCure System.




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

_______________________________________________
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/




--
David Cramblett

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
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/


------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
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/
<Prev in Thread] Current Thread [Next in Thread>