Re: How to get Transfer-Counts during backup?

Matthias Meyer <[email protected]>
Newsgroups gmane.comp.sysutils.backup.backuppc.devel
Message-ID <[email protected]>
Holger Parplies wrote:

> Hi,
> 
> Matthias Meyer wrote on 2011-09-24 13:20:48 +0200 [[BackupPC-devel] How to
> get Transfer-Counts during backup?]:
>> I would like to get actual transfercounts from BackupPC_dump during an
>> active running backup.
>> I establish a signal handler in BackupPC_dump:
> 
> increadibly bad idea.
Thanks for this contribution ;-)
I would be happy if you would justify it.
> 
>> $SIG{IO} = \&write_status;
> 
> Probably the worst choice possible.
> 
>>     print( STDERR "Signal IO catched. $newStat->{fileCnt}" );
> 
> "Caught".
Sorry for my bad english (perl know how) but I don't understand what you 
mean.
> 
>> and run the process with:
>> sux backuppc perl -d:ptkdb /usr/share/backuppc/bin/BackupPC_dump -f
>> athlux
>> [...]
>> 2) Sometimes the process died with:
>> XIO:  fatal IO error 11 (Ressource not available) on X server
>> "localhost:10.0"
>>       after 4555 requests (4362 known processed) with 0 events remaining.
>> dump failed: Child exited prematurely
>> 
>> X Error of failed request:  BadIDChoice (invalid resource ID chosen for
>> this connection)
>>   Major opcode of failed request:  53 (X_CreatePixmap)
>>   Resource id in failed request:  0x5c00158
>>   Serial number of failed request:  7559
>>   Current serial number in output stream:  7729
> 
> As you probably should know, BackupPC_dump does not have an X11 interface.
> This problem can only be an artefact of your debugging attempts.
You are right. Probably because of the X11 interface of the debugger.
Maybee my print() interrupt a non reentrant X11 function.
Is it possible in perl to avoid such interrupts?
Is it inpossible to write something within a signal handler?
> 
>> Any Idea/hint from one of the expert perl programmers?
> 
> Presuming your priority is the backup *contents* and not statistics about
> the *progress*, forget about using a signal handler forever.
I don't have only one priority. One of my interests is to see the progress 
of a backup. Maybee not interesting for everyone :-)
> 
> I'm not really sure why you're asking this on <backuppc-devel>.
I believe that some perl experts are reading this group and maybee some of 
them already have used signals in perl. Maybee someone can point out what 
the problem is and can give me a hint for a solution.
> 
> Regards,
> Holger
> 
br
Matthias
-- 
Don't Panic


------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
BackupPC-devel mailing list
[email protected]
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-devel
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.