[Zetaback-devel] [zetaback commit] r96 - branches/replay

svn-commit at lists.omniti.com svn-commit at lists.omniti.com
Wed Jun 10 16:55:32 EDT 2009


Author: mark
Date: 2009-06-10 16:55:32 -0400 (Wed, 10 Jun 2009)
New Revision: 96

Modified:
   branches/replay/zetaback.in
Log:
Fix viewing of backups, and change the storage method to use actual
filesystems.


Modified: branches/replay/zetaback.in
===================================================================
--- branches/replay/zetaback.in	2009-06-10 19:30:10 UTC (rev 95)
+++ branches/replay/zetaback.in	2009-06-10 20:55:32 UTC (rev 96)
@@ -509,11 +509,13 @@
   while (<ZFSLIST>) {
       my @F = split(' ');
       my ($fs, $snap) = split('@', $F[0]);
-      my $whence = ($snap =~ /__zb_dset_(\d+)/);
+      $fs =~ s/$storefs\/?//;
+      my ($whence) = ($snap =~ /__zb_dset_(\d+)/);
+      next unless $whence;
       $info{$fs}->{full}->{$whence}->{'snapshot'} = $snap;
       # TODO - the info may need to be different here - no last_full or
       # last_incremental
-      #$info{$fs}->{last_full} = $whence if($whence > $info{$fs}->{last_full});
+      $info{$fs}->{last_full} = $whence if($whence > $info{$fs}->{last_full});
       $info{$fs}->{last_backup} = $whence if ($whence >
           $info{$fs}->{last_backup});
   }
@@ -595,8 +597,6 @@
     }
   };
   if($@) {
-    # TODO - what to do if you fail to receive a full zfs stream?
-    # nothing?
     unlink("$store/.$dumpname");
     chomp(my $error = $@);
     $error =~ s/[\r\n]+/ /gsm;
@@ -641,8 +641,6 @@
   my $agent = config_get($host, 'agent');
 
   my $point = time();
-  # Replace slashes with underscores in the fs name
-  my $efs = ($fs =~ s/\//_/g);
   my $dumpname = "$host/$fs\@$point";
 
   zfs_do_backup($host, $fs, 'd', $base, $store, $dumpname);



More information about the Zetaback-devel mailing list