On ons, 2006-10-11 at 22:56 +0200, Stian Jordet wrote:
> On ons, 2006-10-11 at 22:54 +0200, Stian Jordet wrote:
> > And so on. While this may seem right (for what I know, that is), I
> > wonder why they are sorted wrong, and "fillFromNum" on fulls are totally
> > weird, but that doesn't matter, probably?
>
> Ah, crap. The sorting issue was my fault. Sorry.
Last mail from me on this subject tonight;
with the attached patch, I get sane output from
BackupPC_fixupBackupSummary.
Had I only known what to do with the output.
Thanks.
Best regards,
Stian
--- BackupPC_fixupBackupSummary.orig 2006-10-11 23:29:03.598732928 +0200
+++ BackupPC_fixupBackupSummary 2006-10-11 23:31:46.774823952 +0200
@@ -153,13 +153,13 @@
}
print(" Reading $file\n");
while ( (my $str = $f->readLine()) ne "" ) {
- if ( $str =~ /^(\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2})
(full|incr|partial) backup started for directory / ) {
- $startTime = $str;
+ if ( $str =~ /^(\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2})
(full|incr|partial) backup started / ) {
+ $startTime = parsedate($1);
next;
}
next if ( $str !~ /^(\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2})
(full|incr|partial) backup (\d+) complete, (\d+) files, (\d+) bytes, (\d+)
xferErrs \((\d+) bad files, (\d+) bad shares, (\d+) other\)/ );
- my $endTime = $1;
+ my $endTime = parsedate($1);
my $type = $2;
my $bkupNum = $3;
my $nFilesTotal = $4;
@@ -168,12 +168,12 @@
my $badFiles = $7;
my $badShare = $8;
print(" Got $type backup $bkupNum at $endTime\n");
- next if ( !-d "$dir/$2" );
+ next if ( !-d "$dir/$3" );
$BkupFromLOG->{$bkupNum} = {
num => $bkupNum,
type => $type,
- startTime => parsedate($startTime),
- endTime => parsedate($endTime),
+ startTime => $startTime,
+ endTime => $endTime,
size => $sizeTotal,
nFiles => $nFilesTotal,
xferErrs => $xferErrs,
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/