Re: How to get Transfer-Counts during backup?

Holger Parplies <[email protected]>
Newsgroups gmane.comp.sysutils.backup.backuppc.devel
Message-ID <[email protected]>
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.

> $SIG{IO} = \&write_status;

Probably the worst choice possible.

>     print( STDERR "Signal IO catched. $newStat->{fileCnt}" );

"Caught".

> 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.

> 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'm not really sure why you're asking this on <backuppc-devel>.

Regards,
Holger

------------------------------------------------------------------------------
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.