Carl Wilhelm Soderstrom wrote: > On 04/04 07:14 , Holger Parplies wrote: >> in particular, they are compressed, so the end of the file is in my >> experience usually a considerable amount behind the file currently >> copying. This is also the reason you can't simply "switch off buffering" >> for the log files (compression needs reasonably sized chunks to operate >> on for efficient results). It might make sense to think about >> (optionally) writing log files uncompressed and compressing them after >> the backup has finished. Wanting to follow backup progress seems to be a >> frequent enough requirement. Putting the log files on a disk separate >> from the pool FS should probably be encouraged in this case ;-). > > These are all terribly good points. > > Perhaps the current file can simply be stored in memory and presented via > the web interface? Is there a variable that already exists and can be read > by the web interface to present the current file being copied? > Not realy, not yet. But it will counted during backup and BackupPC_dump get them at the end of an backup: my @results = $xfer->run(); $tarErrs += $results[0]; $nFilesExist += $results[1]; $sizeExist += $results[2]; $sizeExistComp += $results[3]; $nFilesTotal += $results[4]; $sizeTotal += $results[5];
Furthermore BackupPC_dump use eventhandler like: $SIG{TTIN} = \&catch_signal; So it should be no problem to add an additional eventhandler $SIG{IO} = \&write_status; which than will collect the actual transfer rates and write them into a file. But maybee - it is possibly a problem to write in a file if the event occurs during writing in a file. Any Ideas? br Matthias -- Don't Panic ------------------------------------------------------------------------------ Xperia(TM) PLAY It's a major breakthrough. An authentic gaming smartphone on the nation's most reliable network. And it wants your games. http://p.sf.net/sfu/verizon-sfdev _______________________________________________ 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/